: The response is not searching for Michael Jackson. Instead it is 
: searching for (text:Micheal and text: Jackson).To monitor the parsed 
: query, i turned on debugQuery, but in the present case, the parsed query 
: string was searching Micheal and Jackson separately.

using index time synonyms isn't ggoing to have any effect on how your 
query is parsed.  the Lucene/Solr query parsers uses whitespace as 
"markup" and will still analyze each of the "words" in your input 
seperately and build up a boolean query containing each of your words 
individually (the only way to change that is to use quotes to force 
"phrase query" behavior where everything in quotes is analyzed as one 
chunk, or pick a different queyr parse like the "field" parser)

...but none of that changes the point of *why* you can/should use index 
time synonyms for situations like this.  the point of doing that is that 
at index time the alternate versions of the multi-word sequences can all 
be expanded and all varients are put in the index ... so it doesn't matter 
if you use a phrase query, or term queries, all of the synonyms are in the 
index document.



-Hoss

Reply via email to