You don't need to ngram at all if your queries themselves are going to be 
wildcarded. 

   Erik

> On Dec 3, 2015, at 17:21, Kelly, Frank <frank.ke...@here.com> wrote:
> 
> Hello Lucene Folks,
> 
>  Newbie here -  I've found how Solr does Wildcard searches of the form   
> field:aaaaa*   using the EdgeNGramFilterFactory
> https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory
> 
> but I can't seem to dig up how to support wildcards in the middle e.g. 
> field:a*a.
> 
> I guess I am missing a Tokenizer / Filter somewhere but not sure where,
> 
> Here is my text configuration
> 
> <fieldType name="text_general" class="solr.TextField" 
> positionIncrementGap="100">
>      <analyzer type="index">
>        <tokenizer class="solr.StandardTokenizerFactory"/>
>        <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="stopwords.txt" />
>        <filter class="solr.LowerCaseFilterFactory"/>
>        <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" 
> maxGramSize="64"/>
>      </analyzer>
>      <analyzer type="query">
>        <tokenizer class="solr.StandardTokenizerFactory"/>
>        <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="stopwords.txt" />
>        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" 
> ignoreCase="true" expand="true"/>
>        <filter class="solr.LowerCaseFilterFactory"/>
>      </analyzer>
>    </fieldType>
> 
> -Frank
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

Reply via email to