cancel
Showing results for 
Search instead for 
Did you mean: 

store.luceneSearch(query), what does it look for?

gronfelt
Champ in-the-making
Champ in-the-making
The JavaScript describes a method in the AVM Store API named store.luceneSearch(query). How is this method supposed to be used, what properties could one search for?  What should the query look like?
1 REPLY 1

pmonks
Star Contributor
Star Contributor
How is this method supposed to be used
The API reference is available at http://wiki.alfresco.com/wiki/3.1_JavaScript_API#Search_API.

what properties could one search for?
All of the standard properties described at http://wiki.alfresco.com/wiki/Search#Summary_of_queryable_fields plus any custom properties that are configured to be indexed (see http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Additional_Property_Capabilities).

What should the query look like?
The Lucene section of the Search wiki page (http://wiki.alfresco.com/wiki/Search) contains numerous examples showing different types of search.  It also helps to become familiar with Lucene's own documentation on the search syntax (see http://lucene.apache.org/java/2_3_2/queryparsersyntax.html).

If you're interested in searching XML files emitted by WCM Web Forms, you'll also need to configure XML Metadata Extraction (see http://wiki.alfresco.com/wiki/Metadata_Extraction#XML_Meta-data_Extractor_Configuration_for_WCM).  This allows elements to be extracted from the XML files and indexed into Lucene (in the same manner as DM style type and aspect properties).

Cheers,
Peter
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.