: I'm trying to match "Apple 2" but not "Apple2" using phrase search, this is 
why I have it quoted.

:  I was under the impression --when I use phrase search-- all the 
: analyzer magic would not apply, but it is!!!  Otherwise, how would I 
: search for a phrase?!

well .. yes ... even with phrase searches your query is analyzed.

the only differnce is that with a quoted phrase search, the entire phrase 
is analyzed at one time -- when the input isn't quoted, the whitespace is 
evaluated by the QueryParser as markup just like quotes and +/-, 
etc... (unless it's escaped) and the individual words are analyzed 
independently.

: Using Google, when I search for "Windows 7" (with quotes), unlike Solr, 
: I don't get hits on "Window7".  I want to use catenateNumbers="1" which 
: I want it to take effect on other searches but no phrase searches.  Is 
: this possible ?

you need to elaborate more on what you do and don't want to match -- so 
far you've given one example of a query you want to execute, and a 
document you *don't* want to match that query, but not an example of what 
types of documents you *do* want to match that query -- you also haven't 
given examples of queries that you *do* want that example document to 
match.

i suspect that catenateNumbers="1" isn't actually your problem ... it 
sounds like you don't actually want WordDelimiterFilter doing the "split" 
at index time at all.

Forget the phrase queries for a second: the question to ask yourself is: 
when you index a document containing "Windows7" do you want a serach for 
the word Windows to match thta document?

If the answer is "no" then you probably don't want WordDelimiterFilter at 
all.



-Hoss

Reply via email to