Hi,

 I have a question regarding the usage of the SynonymFilterFactory at index
time.

 We have a document field with attributes indexed=true, stored=true
(multiValued not explicitly set in schema.xml) and also use the
SynonymFilterFactory as one of the index analyzer filters for that field. I
examined (using Luke) one of the documents in the index that should have a
synonym match expansion for this field but do not see the additional values
for that field. The field seems to have only the original value and does not
show the synonym matches.

The relevant excerpts from schema.xml are as follows:

<fieldtype name="text" class="solr.TextField" positionIncrementGap="100">
  <analyzer type="index">
  <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
   ....

<field name="name" type="text" indexed="true" stored="true"/>

I am curious whether not setting the multiValued attribute to true for this
field results in the synonym match expansions not being indexed. If they are
indexed then how can I check it using Luke? Also, what is the default
setting of the multiValued attribute when not explicitly specified for a
field in schema.xml? I looked at the available documentation but am unable
to figure it out. 

Kindly help.

Regards,

Prasanna.

Reply via email to