Saving n + 1 objects in solr file

I am struggling to figure out how best to store object n + 1 in a solr document.

I save the CV / resume document in the solr document. I am considering storing two different types of data: education and employment.

If we look at education, the object will look like this:

{
 "establishment" => 'Oxford',
 "Subject" => 'Computing',
 "Type" => 'Degree',
 "Grade" => '2:1'
}

A CV may contain n + 1 of these objects, depending on the contents of the CV. The search should be able to see that when searching for a CV with setting = Oxford and Subject = Computing and Grade = 2: 1, so that it matches this object not in another institution with the same subject and class.

Multi-valued, I don’t think it will help or you can save n + 1 of these types of objects.

My question is how to configure solr to be able to store this data type in a single CVR SolR document so that it is searchable as part of a general index search?

+5
source share
1 answer

You essentially want to turn Solr into a relational database. That is, you want to impose some kind of structure on your documents, and not just be a bag of words.

If you need a relationship, you need a relationship. The only way I can think about this is to index the educational objects individually, and then have the "foreign key" from the resume.

, , "n" . , , . , ymmv.

0

All Articles