You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mysurf Mail <st...@gmail.com> on 2013/09/23 09:34:06 UTC

solr - searching part of words

My field is defined as

<field name="PackageName" type="text_en" indexed="true" stored="true"
required="true"/>

*text_en is defined as in the original schema.xml that comes with solr

Now, my field has the following vaues

   - "one"
   - "one1"

searching for "one" returns only the field "one". What causes it? how can I
change it?

Re: solr - searching part of words

Posted by Jack Krupansky <ja...@basetechnology.com>.
Solr is very flexible and you can configure it in lots of amazing ways. You 
need to start with carefully specifying the rules  that you wish to 
implement. Is the numeric the boundary, or do you want to support arbitrary 
prefixes, or... what? Be specific, because that determines what features of 
Solr to use and precisely how to use them.

The word delimiter filter and edge n-gram filter are possible tools to use 
in such cases.

-- Jack Krupansky

-----Original Message----- 
From: Mysurf Mail
Sent: Monday, September 23, 2013 3:34 AM
To: solr-user@lucene.apache.org
Subject: solr - searching part of words

My field is defined as

<field name="PackageName" type="text_en" indexed="true" stored="true"
required="true"/>

*text_en is defined as in the original schema.xml that comes with solr

Now, my field has the following vaues

   - "one"
   - "one1"

searching for "one" returns only the field "one". What causes it? how can I
change it?