I have to search candidate's profile , on which I have following Tables :

Candidate Profile Record : CandidateProfile_Table

CandidateEducation : CandidateEducation_Table  //  EducationIn Different
Institutes or Colleges  :

Employers :  Employers_Table //More than One Employers :

If I denormalize this all three Table :

CandidateProfile_Table  - 1 Row for Sumit

CandidateEducation_Table - 5 Rows for Sumit

Employers_Table - 5 Rows for Sumit

If these three tables will go to Index in Solr , It will create 25 Documents
for one row.


In this Case What Should be My Approach :

DeNormalize all three tables and while querying from Solr use Field Collpase
parameter by CandidateProfile Id, So It will return one record.

Or

I should use CandidateEducation_Table,CandidateEducation_Table as
MultiValued in Solr ?


If that is the case, then How I can apply Solr way to use MultiValue e.g;

I need to use  Following Configuration in Scehma.xml :


  <field name="education" type="textgen" indexed="true" stored="true"/>
  <field name="employer" type="textgen" indexed="true" stored="true"/>


After this :


I should pick all education values(from MySql Education Database Table)
concerned to one profile

and keep this in a one variable - EducationValuesForSolr

and then EducationValuesForSolr's value need to assign to Schema.XML defined
variable education ?


Please let me know If I am using right approach and Comments?

/Sumit

Reply via email to