I think that's because of the internal tokenization that Solr does. If a
document contains HP1, and you're using the default text field type, Solr
would tokenize that to HP and 1, so that document figures in the list of
documents containing HP, and hence that documents appears in the search
results for HP. Creating a separate text field which does not tokenize like
that might be what you want.

The various filter/tokenizer types are listed here -
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters

On Tue, Mar 2, 2010 at 6:07 PM, Frederico Azeiteiro <
frederico.azeite...@cision.com> wrote:

> Hi,
>
> I'm using the default "text"  field type that comes with the example.
>
>
>
> When searching for simple words as 'HP' or 'TCS' solr is returning
> results that contains 'HP1' or 'T&CS'
>
> Is there a solution for to avoid this?
>
>
>
> Thanks,
>
> Frederico
>
>


-- 
- Siddhant

Reply via email to