Hi all.
I'm trying Solr for the first time, and i find it simply amazing, cheers
to the developers!
While i was writing down the XML creator file, i came up with a
question: i work for an online shop, and we sell books.
This particular product can have multiple authors / translators in its
"author" / "translators" fields.
I want a single <field name="author"....> for a better indexer, instead
of making something like <field name="author_1"|"author_2" ... > as
some books have a single entry.
I'm worried that simply pushing into this field the infos related to the
authors (i.e. "Stephen Rich" and "Karl King") it could give bad answers
to my queries (i.e. returning "Stephen King" as a positive match),
basically mixing up the words it finds inside.
Is there a way to solve this problem? Are the words tokenized with some
sort of relation?
I came up with 3 ideas, but i'd love to hear something from you, as none
of them seems the right one.
1) I can push inside that field something like ("name1 surname1"
"surname1 name1" "name2 surname2" "surname2 name2" "name1" "name2"
"surname1" "surname2") to match all the possible cases, and "force" the
query to look first at the strings inside, but somehow i think this goes
against the main idea behind this project.
2) Making 2 fields, one for "author_name, author_surname" and one for
the single words to allow single word match.
3) Placing a " , " separator between the words, to enforce the relation,
makind a sort of multiple field.
Thanks for your time.
- Multiple entries in a field Stefano Nicolai
-