On 6/5/2011 3:36 AM, occurred wrote:
Ok, thx for the answer.

My idea now is to store both field-values in one field and pre- and
suffix the values from field2 with something very special.
Also then the synonyms have to have the special pre- and suffixes.

What are you actually trying to do?

Usually, what people would do is just store both original values and synonym expansion in one field, the end, no need to use custom suffixes. Then you could have a _second_ field with only the original values without synonym expansion, if you sometimes need to search without synonym expansion.

You want to search over both original values and expanded synonyms, you search over the field that does that. You want to, in another search, search only over original values without synonym expansion, you search over the field without synonyms expanded in it.

That's usually the sort of thing people do. "de-normalization" in Solr is not something to be avoided, it's instead a general pattern.

Reply via email to