: ?q="Here there be dragons"
: &qt=dismax
: &qf=title
        ...
: +DisjunctionMaxQuery((title:"here dragon")~0.01) ()

...the quotes cause the entire string to be passed to the analyzer for 
the title field and the resulting Tokens are used to construct a phrase 
query.

: ?q=Here there be dragons
: &qt=dismax
: &qf=title
        ...
: +((DisjunctionMaxQuery((title:here)~0.01) 
: DisjunctionMaxQuery((title:dragon)~0.01))~2) ()

...the lack of quotes just results in two term queries, that must be 
anywhere in the string.

: It looks like it might be related to 
        ...
: http://issues.apache.org/jira/browse/SOLR-879
: 
: Although I added enablePositionIncrements="true" to
: 
: <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt"/>
: 
: in to the <analyzer type="query"> for <fieldType name="text"> in the 
: schema which didn't fix it - I presume this means that I have to reindex 
: everything (although the StopFilterFactory in <analyzer type="index"> 
: already had it).

...hmm, you shouldn't have to reindex everything.  arey ou sure you 
restarted solr after making the enablePositionIncrements="true" change to 
the query analyzer?

what do the offsets look like when you go to analysis.jsp and past in that 
sentence?

the other thing to consider: you can increase the slop value on that
phrase query (to allow looser matching) using the "qs" param (query slop) 
... that could help in this situation (stop words getting striped out of 
hte query) as well as other situations (ie: what if the user just types 
"here be dragons" -- with or without stop words)



-Hoss

Reply via email to