Re: Search for the single hash "#" character never returns results

2011-10-27 Thread Erick Erickson
NP. By the way, kudos for posting enough information to diagnose the problem first time round! Erick On Thu, Oct 27, 2011 at 8:46 AM, Daniel Bradley wrote: > Fantastic, thanks, yes I completely overlooked that case, separating the > analysers worked a treat. > > Had also posted on stack overflow

Re: Search for the single hash "#" character never returns results

2011-10-27 Thread Daniel Bradley
Fantastic, thanks, yes I completely overlooked that case, separating the analysers worked a treat. Had also posted on stack overflow but the mailing list proved to be superior! Many thanks, Daniel On 27 October 2011 13:09, Erick Erickson wrote: > Take a look at your admin/analysis page and pu

Re: Search for the single hash "#" character never returns results

2011-10-27 Thread Erick Erickson
Take a look at your admin/analysis page and put your tokens in for both index and query times. What I think you'll see is that the # is being stripped at query time due to the first PatternReplaceFilterFactory. You probably want to split your analyzers into an index-time and query-time pair and do

Search for the single hash "#" character never returns results

2011-10-25 Thread Daniel Bradley
When running a search such as: field_name:# field_name:"#" field_name:"\#" where there is a record with the value of exactly "#", solr returns 0 rows. The workaround we are having to use is to use a range query on the field such as: field_name:[# TO #] and this returns the correct documen