[support] Apache solr integration - Adding new fields during indexing of a node/document

Kamal Palei palei.kamal at gmail.com
Sun May 12 03:22:31 UTC 2013


Hi Earnie,
Thanks for reply. Users register their details in site.

I did not understand "*I would add fields to the user entity*" .

What is user entity ? Kindly provide more details.

Do you mean the fields like age, experience, salary etc should be added to
solr index or it will be stored somewhere within Drupal tables.

Best Regards
kamal





On Sat, May 11, 2013 at 9:24 PM, Earnie Boyd
<earnie at users.sourceforge.net>wrote:

> If it were me I would add fields to the user entity assuming your
> submitters need to register.  If no registration, I would add fields
> to the node entity.  You can then use those fields to filter the data.
>  The other option is to use three taxonomy types and allow the data to
> be tags.
>
> Earnie
>
> On Sat, May 11, 2013 at 2:55 AM, Kamal Palei wrote:
> > Dear Drupal Experts
> > Currently I use apache solr 3.6.2 for search engine in a Drupal 715
> > environment. Apache solr, indexes the document, I search based on the
> > keyword and gets document list. So far so good.
> >
> > I need to enhance it. When I add the document (actually these are
> resumes),
> > I need to add certain fields like age, experience years, salary etc.
> >
> > So that while searching the documents, I can add the filters accordingly
> to
> > get more relevant documents.
> >
> > Now my BIIGEST worry is how do I proceed.
> >
> > 1. Do I need to modify the schema file to add fields for age, experience,
> > salary
> >
> > 2. Do I need to implement some  special hooks in my custom module, so
> that I
> > can add the fields like age, experience (any examples if you have please
> > share) during indexing.
> >
> > 3. While searching, do I need to implement any specific hook, so that I
> can
> > add the filters for age, experience etc.., if so , pls share the
> examples if
> > you have.
> >
> > Thanks
> > Kamal
> >
> >
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
> --
> Earnie
> -- https://sites.google.com/site/earnieboyd
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130512/1703c60a/attachment.html 


More information about the support mailing list