On Dec 14, 2005, at 8:50 PM, Carl Youngblood wrote:> I need to be able to search for certain symbol characters. For
> example, I want the search for c++ to work. I try enclosing it in
> quotes, but it seems to treat C and the pluses as two separate
> characters to look for. Search for ++ alone seems to find documents
> that don''t have any pluses in them. Why would that happen?
What analyzer are you using?
If you can get a little lower-level and get the Query object, what
does it''s to_s provide?
Analysis and query parsing is tricky business that requires attention
to the details of how text is tokenized and how the parser interacts
with it. My article "QueryParser Rules" is an oldie, but a goodie
that might help troubleshoot this situation:
http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html
Erik