On Apr 13, 2010, at 10:02 AM, Abdelhamid ABID wrote: >> >> Do you have an example of what you are trying to do? >>>> >>>> > > > For instance a request like: "tomcat servlet" should return document which >>>>>>> have "tomcat is a servlet container" rather than a document that >>>>>>> have"tomcat offers the last specification implementaion of the servlet >>>>>>> technology", at least this last should not come before the first in >>>>>>> results. >>>>>> >>>>>> >
Using a phrase query with a high slop value should handle this, as the closer the terms are, the better the score for that match. > >> Boost in the query or during indexing? >>>> >>>> > I think boosting in query is more relevant. >>>>>> >>>>>> > Thanks > > > > > On 4/13/10, Grant Ingersoll <gsing...@apache.org> wrote: >> >> >> On Apr 12, 2010, at 7:57 PM, Abdelhamid ABID wrote: >> >>> Hi, >>> - I'm bit confused on how analyzer apply filters on query, I know that >> they >>> are applied in order on which they are declared, but still, does the >> search >>> result >>> include only the final digest of the filters chain or at each filter step >>> solr add the matched term to results set. >> >> >> It is the final output. >> >> >>> >>> - Does Dismax request handler support quoted keywords ? if not, how can I >>> search for an exact sentence using dismax. >> >> >> It does. >> >> >>> - How to match a request with the documents that only have keywords that >>> appears in the closest positions. >> >> >> Do you have an example of what you are trying to do? >> >> >>> - How can I boost a set of keywords instead of fields? this would be >> useful >>> in case where a document with one single searchable field, which is of >> type >>> text and where "boosting field" has no sense. >> >> >> Boost in the query or during indexing? You should be able to just boost the keyword using the ^ operator. >> >> >> -------------------------- >> Grant Ingersoll >> http://www.lucidimagination.com/ >> >> Search the Lucene ecosystem using Solr/Lucene: >> http://www.lucidimagination.com/search >> >>