Re: Sort by exact match

2014-03-19 Thread Erick Erickson
Sorting applies to the entire result set, there's no notion of "sort some docs one way and sort others another way". So I don't know any OOB way to do what you want. I don't know what your response time requirements are, but you could do this by firing off two queries and collating the results. If

Sort by exact match

2014-03-19 Thread Rok Rejc
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