Alachisoft NCache 4.1 - Online Documentation

Indexing Searchable Attributes in Java

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 the steps given below to define indexes for the attributes of Product:
  • Stop the Cache if it is running.
  • From the tabbed view, select 'Query Indexes' tab as shown in the figure below.
  • Click 'Add' button from the Query Indexes tab, you'll see the 'Select Query Indices' dialog. Click 'Browse' button to add assembly which contains the definition of the Product.
  • From the list of 'Selected Assemblies', select Product class and add it to the List of selected Classes using 'Add Class' button.
  • From the 'Select Query Indexes' dialog, mark the attribute(s) of the Product class that you want to be indexed.
  • Press 'OK' button to complete the process.
  • The following screen appears, showing the attributes selected for the indexing.
See Also
Copyright © 2005-2012 Alachisoft. All rights reserved.