> I'm trying to understand what Solr is doing when a search
> for O'Connor and
> O'Conn* is done.
> 
> The first search returns 4 results, which is fine. I would
> expect the second
> search to return at least 4 (the same) results, however it
> fails to return
> any.
> 
> I've debugged the query and this is the output:
> 
> Debug for O'Connor :
> <str
> name="rawquerystring">surname:O'Connor</str>
> <str name="querystring">surname:O'Connor</str>
> <str name="parsedquery">PhraseQuery(surname:"o
> connor")</str>
> <str name="parsedquery_toString">surname:"o
> connor"</str>
> 
> Debug for O'Conn* :
> <str
> name="rawquerystring">surname:O'Conno*</str>
> <str name="querystring">surname:O'Conno*</str>
> <str name="parsedquery">surname:O'Conno*</str>
> <str
> name="parsedquery_toString">surname:O'Conno*</str>
> 
> So as you can see the queries are different but I don't
> understand why Solr
> changes them the way it does?

Wildcard queries are not analyzed, thats the reason. Please note that 
analysis.jsp does not actual query parsing.


      

Reply via email to