Thats what i'm thinking too. If i remove solr.worddelimiter filter from both
index and query, the word h1-b will remain as is in the index correct, so if
someone searches for h1b (without hyphens) would it still return the h1-b
doc. 

Otis Gospodnetic wrote:
> 
> It sounds like you simply want to drop solr.WordDelimiterFilterFactory
> from your analyzer definition, no?
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> ----- Original Message ----
> From: anuvenk <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Saturday, January 5, 2008 1:24:14 AM
> Subject: solr word delimiter
> 
> 
> I have the word delimiter filter factory in the text field definition
>  both at
> index and query time. 
> But it does have some negative effects on some search terms like h1-b
>  visa
> It splits this in to three tokens h,1,b. Now if i understand right,
>  does
> solr look for matches for 'h' separately, '1' separately and 'b'
>  separately
> because they are three different tokens. This is giving some undesired
> results..docs that have 'h' somewhere, '1' somewhere and 'b' somewhere.
>  How
> to solve this problem?
> I tried adding synonym like h1-b => h1b visa
> It does filter some results, but i'm trying to find a global solution
>  rather
> adding synonyms for all kinds of immigration forms like i-94, k-1 etc
> -- 
> View this message in context:
>  http://www.nabble.com/solr-word-delimiter-tp14630435p14630435.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/solr-word-delimiter-tp14630435p14637863.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to