What you are asking for is comparable to saying:

In my index I have a TrieIntField called severity when i search for 
severity:8765432 I get results, but when i search for severity:8* i get no 
results -- what do i need to change so that this type of query matches 
8765432 and 8978 and 84356 etc...


The bottom line is, but using the EnumField (or the TrieIntField, etc...) 
you are taking advantage of features to make specific usecases 
fast/efficient -- if those efficiencies don't server your usecase, you 
need to pick a differnet field type.  example: just use a String field.



: Date: Thu, 29 May 2014 06:50:32 +0000
: From: Elran Dvir <elr...@checkpoint.com>
: Reply-To: solr-user@lucene.apache.org
: To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
: Subject: wildcard matches in EnumField - what do I need to change in code to
:     enable wildcard matches?
: 
: Hi all,
: 
: In my index, I have an EnumField called severity. This is its configuration 
in enumsConfig.xml:
: 
: <enum name="severity"> 
:       <value>Not Available</value> 
:       <value>Low</value>
:        <value>Medium</value>
:        <value>High</value>
:        <value>Critical</value>
:  </enum>
: 
: My index contains documents with these values.
: When I search for severity:High, I get results. But when I search for 
severity:H* , I get no results.
: What do  I need to change in Solr code to enable wildcard matches in 
EnumField  (or any other field)?
: 
: Thanks.
: 

-Hoss
http://www.lucidworks.com/

Reply via email to