Search syntax |
Detailed description of Lucene query parser syntax can be found at http://lucene.apache.org/java/2_1_0/queryparsersyntax.html
Based on the level of allowed syntax specified by the Search options property of Smart search dialog with results or Smart search results web parts, users can enter search queries in formats described below:
Searching numeric fields
When performing fields search, the values specified are understood as string by default. If you know that you are searching in integer or double fields, you will need to specify the type of the field the following way:
Searching date and time fields
Due to the same reason, search in DateTime fields also requires special syntax in format <field name>:yyyymmddhhmm. So for example:
If you need to specify date and time using a macro, you will need to use the |(tosearchdatetime) parameter to convert the returned value to the format suitable for Lucene.
You can also use the |(add) parameter, which adds the specified amount of seconds to the value.
Field search with Stop and Simple analyzers
Indexes created by Stop and Simple analyzers can not be searched using the standard field search format. This is by design, but you can use a workaround with a range query containing identical range boundaries:
|