facets are based off the indexed version of your string nor the stored
version, you probably have an analyzer thats removing punctuation,
most people index the same field multiple ways for different purposes,
matching. storting, faceting etc...

index a copy of your field as string type and facet on that

On Thu, Jan 28, 2010 at 3:12 AM, Sergey Pavlikovskiy
<pavlikovs...@gmail.com> 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.
>>
>>
>

Reply via email to