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

Earnie Boyd earnie at users.sourceforge.net
Sun May 12 15:46:49 UTC 2013


Within the Drupal database.

Here is a post about how to add fields to the user.

https://drupal.psu.edu/content/add-fields-user-drupal-7

There are other links found via Google but I wanted to give you the
least confusing one.  Add your age, experience and salary fields to
the user registration and then configure your search engine to look
for those fields (I know nothing about apache solr).

Earnie

On Sat, May 11, 2013 at 11:22 PM, Kamal Palei <palei.kamal at gmail.com> wrote:
> 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/ ]


More information about the support mailing list