Hi Abhi,

PropertyAddressState is of type “string”, which has no analysis applied.

Since you copyfield to “text” field, which has the analysis you expect, you 
could try querying it instead.

--
Steve
www.lucidworks.com

> On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote:
> 
> Can someone please help me?
> 
> Schema.xml
> 
> <field name="PropertyAddressState" type="string" indexed="true"
> stored="true" docValues="true"/>
> 
> <field name="text" type="text_general" indexed="true" stored="false"
> multiValued="true"/>
> 
> 
> <copyfield source="PropertyAddressState" dest="text"/>
> 
> 
> <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.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"
> tokenizerFactory="solr.StandardTokenizerFactory"/>
>    <filter class="solr.LowerCaseFilterFactory"/>
>  </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>
> 
> 
> 
> 
> Synonyms.txt has been populated with State abbreviations and names.
> 
> 
> When searching for
> 
> PropertyAddressState:"Oregon", I do not find docs with "OR".
> 
> 
> 
> What am I missing?
> 
> 
> Thanks,
> 
> Abhi

Reply via email to