try adding &debug=true to your query. The query q=SellerName:cardinal he actually parses as q=SellerName:cardinal defaultSearchField:he
so I suspect you're getting on the default search field. I'm not sure EdgeNGram is what you want here though. That only grams individual tokens, so CARDINAL is grammed totally separately from HEALTH. You might consider a different tokenizer, say KeywordTokenizer and LowerCaseFilter followed by edgeNGram to treat the whole thing as a unit. You'd have to take some care to make sure you escaped spaces to get the whole thing through the query parser though. Best, Erick On Wed, Oct 14, 2015 at 11:03 AM, Brian Narsi <bnars...@gmail.com> wrote: > I have the following fieldtype in my schema: > > <fieldType name="text_edgngrm" class="solr.TextField" > positionIncrementGap="100"> > <analyzer type="index"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.EdgeNGramFilterFactory" minGramSize="3" > maxGramSize="25"/> > </analyzer> > <analyzer type="query"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > </analyzer> > </fieldType> > > and the following field: > <field name="SellerName" type="text_edgngrm" indexed="true" stored="true" > required="true" multiValued="false" /> > > With the following data: > SellerName:CARDINAL HEALTH > > When I do the following search > > q:SellerName:cardinal > > I get back the results with SellerName: CARDINAL HEALTH (correct) > > or I do the search > > q:SellerName:cardinal he > > I get back the results with SellerName: CARDINAL HEALTH (correct) > > But when I do the search > > q:SellerName:cardinal hea > > I am getting the results back with SellerName:INTEGRA RADIONICS > > Why is that? > > I need it to continue to return the correct results with CARDINAL HEALTH. > How do I make that happen? > > Thanks in advance,