lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Maldonado <>
Subject Exact match on KeywordTokenizer
Date Thu, 02 Jan 2014 14:41:59 GMT

Is there a way to do an exact match search on a tokenized field?

I have a scenario which i need a field to be indexed and searchable
regardless of the case or white spaces used. For this, I created a custom
field type with the following configuration:

<field name="propertyType" type="customtype" indexed="true" stored="true" />

<fieldType name="customtype" class="solr.TextField"
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.PatternReplaceFilterFactory" pattern=" "
      <analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>

Even using KeywordTokenizerFactory on both index and query, all my searchs
based on exact match stopped working.

Is there a way to search exact match like a string field and at the same
time use customs tokenizers aplied to that field?

Thank's in advance

*"E conhecereis a verdade, e a verdade vos libertará." (João 8:32)*

 *andre.maldonado* <>
 (11) 9112-4227


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message