I would like to write a specific fieldType that will work as shown at the example below:
Say we have a name: foo MooBar (f00B2r)
;
- "f" =>
foo MooBar (f00B2r)
(and others with a "f") - "foo moob" =>
foo MooBar (f00B2r)
(and others with a "foo moob", etc.) - "foo (f0" =>
foo MooBar (f00B2r)
- "moobar f" =>
foo MooBar (f00B2r)
- "(f00b2r)" =>
foo MooBar (f00B2r)
- "bar" => none
- "moobar o" => none
- "moob foo" => none
My problems:
- If i search for "moobar f" i'll get none;
- If i search for "(f00b2r)" i'll get none;
my fieldType in solr/conf/schema.xml:
<fieldType name="frontMatch" class="solr.TextField" positionIncrementGap="255">
<analyzer type="index">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="255" side="front" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="255" side="front" />
</analyzer>
</fieldType>
P.S.
Sorry for my English and Thanks;