For the last couple of days, we have been thinking of using Solr as our search engine. Most of the features we need are out of the box or can be easily configured. However, there is one feature that we absolutely need, which seems to be well hidden (or missing) in Solr.
I will try to explain with an example. We have many documents that are actually enterprises:
<document> <name>Apache</name> <cat>1</cat> ... </document> <document> <name>McDonalds</name> <cat>2</cat> ... </document>
In addition, we have another xml file with all categories and synonyms:
<cat id=1> <name>software</name> <synonym>IT<synonym> </cat> <cat id=2> <name>fast food</name> <synonym>restaurant<synonym> </cat>
We want to link both companies and categories so that we can search using the name and / or synonyms of the category. But we do not want to merge these files during indexing, because we must update the categories (add. Correction of synonyms ...) without indexing all enterprises again.
Is there anything in Solr that makes such associations, or do we need to develop some specific fragments?
All feedback and suggestions are welcome.
Thanks in advance Tom
search-engine lucene solr
Tom
source share