I understand that when doing a keyword search, that using quotes treats the quoted string as a phrase. Say I am indexing the subdivision field for property records and one of them has a subdivision with a value of
Legend Oaks.
So that property should be returned if search for any of the following, correct?
Legend
Oaks
Legend Oaks
"Legend Oaks"
Well, I get the expected result for all of the queries except with the quotes. Any ideas?
I am using the standard schema.xml except for the following additions:
an additional type of:
<fieldtype class="solr.TextField" name="text_pre" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<!-- <tokenizer class="solr.WhitespaceTokenizerFactory"/> -->
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.NGramFilterFactory" minGramSize="1" maxGramSize="15" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldtype>
and an additional field using the new type of:
<dynamicField name="*_textp" stored="false" type="text_pre" multiValued="true" indexed="true"/>
and my subdivision field is using this new type in the model:
text :subdivision, :as => :subdivision_textp