Hi All

Need help in adding a new field and making use of it during search.

As of today I just search some keywords and whatever document (actually
these are resumes of individuals) is retrieved from SOLR search I take
these as input, then search in mysql for experience, salary etc and then
selected resumes I show as search result.

Say, while searching in SOLR, I want to achieve something as below.

1. Search keywords in those users resume whose experience is greater than 5
years.

To achieve My understanding is
1. I need to define a new field in schema
2. During indexing, add this parameter
3. During search, have a condition like experience >= 5 years


When I will be adding a field , should I add as a normal field one as shown
below

*<field name="experience" type="integer" indexed="true" stored="true"/>*

OR as a dynamic field as shown below

*<dynamicField name="exp_*"  type="double"   indexed="true"  stored="true"
multiValued="false"/>*


And during search, how the condition should look like.

Best regards
Kamal

Reply via email to