Strus query analyzer configuration
Language grammar
class="description">The grammar for the query analysis differs slightly from the the document analysis. The sections that can be defined for query analysis are restricted to the following:
- MetaData
- SearchIndex
- PatternLexem
- PatternMatch
Another difference is the selection of elements to process. In the document you define selection expressions for the segmenter. In the query analysis you define names of query field types instead. The name 'default' is reserved for the default query field type, used when no name for the field is specified in the query.
Example
[SearchIndex] word = lc:convdia(en):stem(en) word word; word = lc:convdia(en):stem(en) word default; [MetaData] language = dictmap("language.txt"):lc language;