Hi Sergey,

In schema.xml, i have got by default

    <!-- A general unstemmed text field - good if one does not know the
language of the field -->^M
    <fieldType name="textgen" class="solr.TextField"
positionIncrementGap="100">^M
      <analyzer type="index">^M
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>^M
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true" />^M
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1" caten
ateNumbers="1" catenateAll="0" splitOnCaseChange="0"/>^M
        <filter class="solr.LowerCaseFilterFactory"/>^M
      </analyzer>^M
      <analyzer type="query">^M
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>^M
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>^M
        <filter class="solr.StopFilterFactory"^M
                ignoreCase="true"^M
                words="stopwords.txt"^M
                enablePositionIncrements="true"^M
                />^M
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0" caten
ateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>^M
        <filter class="solr.LowerCaseFilterFactory"/>^M
      </analyzer>^M
    </fieldType>^M


and i added following entry in schema.xml file,

<field name="g_number" type="textgen" indexed="true" stored="true"/>

But it didnt help. Still the texts are not in original format. Correct me if
i am wrong.

Regards,
Uma

Sergey Pavlikovskiy wrote:
> 
> Hi,
> 
> probably, it's because of stemming
> if you need unstemmed text you can use 'textgen' data type for the field
> 
> Sergey
> 
> On Thu, Jan 28, 2010 at 12:25 PM, Solr user
> <uma.ravind...@yahoo.co.in>wrote:
> 
>>
>> Hi,
>>
>>  I am new to Solr. I found facets fields does not reflect the original
>> string in the record. For example,
>>
>> the returned xml is,
>>
>> - <doc>
>>  <str name="g_number">G-EUPE</str>
>> </doc>
>> - <lst name="facet_counts">
>>  <lst name="facet_queries" />
>> - <lst name="facet_fields">
>> -       <lst name="g_number">
>>  <int name="gupe">1</int>
>> </lst>
>>  </lst>
>> -  <lst name="facet_dates" />
>>  </lst>
>>
>> Here, "G-EUPE" is displayed under facet field as 'gupe' where it is not
>> capital and missing '-' from the original string. Is there any way we
>> could
>> fix this to match the original text in record? Thanks in advance.
>>
>> Regards,
>> uma
>> --
>> View this message in context:
>> http://old.nabble.com/index-of-facet-fields-are-not-same-as-original-string-tp27353838p27353838.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/index-of-facet-fields-are-not-same-as-original-string-tp27353838p27364887.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to