lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sundar Sankaranarayanan" <Sundar.Sankaranaraya...@phoenix.edu>
Subject Question on WhitespaceTokenizerFactory concatenateAll
Date Fri, 02 May 2008 21:41:14 GMT
Hi,
    I have a requirement that one of the fields that I had indexed as a
Text Field earlier should now return me results when searched with blank
spaces in between the word. I had tried to use the example in
wiki(http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#head-83
c527b144cd9f71c341e7c4a061daee382bca40) to do so. I changed my schema to
this.
 
<fieldtype name="subword" class="solr.TextField">
      <analyzer type="query">
          <tokenizer class="solr.WhitespaceTokenizerFactory"/>
          <filter class="solr.WordDelimiterFilterFactory"
                generateWordParts="1"   
                generateNumberParts="1" 
                catenateWords="1"       
                catenateNumbers="1"     
                catenateAll="1"         
                />
      </analyzer>
      <analyzer type="index">
          <tokenizer class="solr.WhitespaceTokenizerFactory"/>
          <filter class="solr.WordDelimiterFilterFactory"
                generateWordParts="1"   
                generateNumberParts="1" 
                catenateWords="1"       
                catenateNumbers="1"     
                catenateAll="1"         
                />
          <filter class="solr.LowerCaseFilterFactory"/>
          <filter class="solr.StopFilterFactory"/>
          <filter class="solr.EnglishPorterFilterFactory"/>
      </analyzer>
    </fieldtype>
 
<field  name="XXXX" type="subword" indexed="true" store="true"
omitNorms="false"/>
How ever, I still am not getting back any results when the searched word
has space in between them. I have not re indexed the data after the
change in schema.xml. 
Is there a way that I still get back results without having to re-index
them.
 
 
Warm Regards,
 
Sundar Sankarnarayanan
Software Engineer
@University of Phoenix
 

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