You can always try something like this out in the analysis.jsp page,
accessible from the Solr Admin home. Check out that page and see how it
allows you to enter text to represent what was indexed, and text for a
query. You can then see if there are matches. Very handy to see how the
various filters in a field type act on text. Make sure to check "verbose
output" for both index and query.

For this specific issue, yes, a query for "cls500" will match both of those
examples.

To get the exact match to score higher:
- create a text field (or a custom type that uses the
WordDelimiterFilterFactory) (let's name the field "foo")
- create a string field  (let's name it "foo_string")
- create a "copyField" with the source being "foo" and the dest being
"foo_string".
- use dismax (or edismax) to search both of those fields

http://localhost:8983/solr/select/?q=cls500&defType=edismax&qf=foofoo_string

This should score the string field higher, but you could also add a boost to
it to make sure:

http://localhost:8983/solr/select/?q=cls500&defType=edismax&qf=foofoo_string^4.0

-Jay
http://lucidimagination.com


On Fri, Feb 4, 2011 at 4:25 PM, John kim <hongs...@gmail.com> wrote:

> If i use WordDelimiterFilterFactory during indexing and at query time,
> will a search for "cls500" find "cls 500" and "cls500x"?  If so, will
> it find and score exact matches higher?  If not, how do you get exact
> matches to display first?
>

Reply via email to