lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From solruser <solru...@gmail.com>
Subject Phrase Query fetch no results - verfiy
Date Thu, 03 May 2007 17:32:45 GMT

Hi Everyone,

Question on phrase query. Does the phrase query will return only the
documents with all terms matched in the document?
To better illustrate there is a phrase query say "How do I look for supply".
Now the expected result using phrase query after giving valid slop, should
return back document with exact match first and then remaining documents
that match any or few terms in the phrase. Here is the example of terms with
# of occurrences in index is as follows

1. How    - 2000
2. do  -1500
3. I    -3000
4. look - 100
5. for - 1400
6. supply - 10

well when  try to query against index the same phrase with slop there are no
results. schema for the field uses 

Tokenizer - WhitespaceTokenizerFactory
Filter - StopFilterFactory
Filter - WordDelimiterFilterFactory
Filter - LowerCaseFilterFactory
Filter - EnglishPorterFilterFactory
Filter - RemoveDuplicatesTokenFilterFactory

The way I need results is 
It should return exact match first and thereafter words with most unique
terms in index on top followed by any other documents

So I am wonder if there is any default analyzer in Solr that exists for such
scenario or this is kind of specific requirement to write custom analyzer.
If yes, I look forward someone to share some code snippet to write a custom
analyzer

Thanks,
Amit

-- 
View this message in context: http://www.nabble.com/Phrase-Query-fetch-no-results---verfiy-tf3687878.html#a10309639
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message