Retrieving Field Values From the Lucene Index

Administrators can retrieve the values of one or more field names in a Lucene index library using the following request URL:

http://host:[port]/context_root/saxfeed?
  fieldvalues=true&datasource=index_name&field=field_name

where:

host:[port]

Is the name of the server and its port number where Magnify is installed.

context_root

Is the WebFOCUS web application alias.

fieldvalues

If set to true, enables the ability to retrieve field name values from the Lucene index.

datasource=index_name

Specifies the name of the Lucene index library.

field=field_name

Specifies a field name in the Lucene index. You must specify the field parameter for each field name. For example, to retrieve the value of the datetime, productid, and store fields, specify each field name as follows in the URL:

field=datetime&field=productid&field=store

An XML document is returned to the browser that contains the values for each field name specified in the URL.

The following example retrieves the value for the datetime field in the centuryproducts Lucene index.

http://localhost:8080/ibi_apps/saxfeed?fieldvalues=true    &datasource=centuryproducts\&field=datetime 
 
<? xml version="1.0" encoding="UTF-8" ?>
- <fieldvalues>
 - <record documentnumber="0">
  <datetime>2010-08-14 16:38:15.97-0400</datetime> 
  <datetime>2010-08-14 16:38:15.97-0400</datetime> 
  </record> 
- <record documentnumber="1">
  <datetime>2010-08-14 16:38:15.280-0400</datetime> 
  <datetime>2010-08-14 16:38:15.280-0400</datetime> 
  </record> 
- <record documentnumber="2">
  <datetime>2010-08-14 16:38:15.472-0400</datetime> 
  <datetime>2010-08-14 16:38:15.472-0400</datetime> 
  </record> 
- <record documentnumber="3">
  <datetime>2010-08-14 16:38:15.595-0400</datetime> 
  <datetime>2010-08-14 16:38:15.595-0400</datetime> 
  </record>
-</fieldvalues>

WebFOCUS