Hi all,

I have a field in the index - lets call it Name. Name can have one or more
words. I want to query all documents which match by name (full or partial
match), and order the results:
- first display result(s) with exact matches
- after that display results with partial matched and order them
alphabeticaly

To achive this I have created two Name fields in the index:
- NameUnTokenized which uses KeywordTokenizer and
- NameTokenized which uses StandardTokenizer

But now I have no clue how to write a query. Is this possible with standard
query and sort functions?  How?

Other option is to write a custom plugin which will perform two queries and
merge results (that shouldn't be a problem).

Many thanks in advance.

Reply via email to