Alachisoft NCache 3.8

Indexing Searchable Attributes in Java

Feature is not available under 3.8.0.0

To use queries in Java, you have to define query indexes on the attributes participating in the query. Then use methods from NCache Client API for Java to query the objects.


Defining Indexes


Follow these steps to define indexes for the attributes:

  1. Launch NCache Class Browser. It can be started as any other jar package under windows. It displays all the classes and their public fields in 'Available Classes', as shown in the figure below.


Class Browser


  1. Select fields for the classes you want to use for queries, from 'Available Classes'. Class Browser application generates the config text for the selected classes and displays it in the 'Selected Classes' text pane.
  2. Copy the configuration text.
  3. Launch NCache Manager and open 'Query Indexes' tab.
  4. Paste the configuration text to 'Selected Classes and their attributes' in NCache Manager.


javaindex

 

See Also

Using Queries