Closed (duplicate)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2011 at 14:33 UTC
Updated:
28 Sep 2011 at 21:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
internetdevels commentedNew patch below
Comment #2
BeaPower commentedAny for drupal 6 dev? Thanks.
Comment #3
presleyd commentedI get the following error at /admin/config/search/apachesolr/indexer/bundles
The number of entities it finds to index seems too low as well. I selected users and several content types and have 249 users and 72 pieces of content currently. It found 129 documents total.
Comment #4
ChrisFlink commentedIs this the way to go for user search?
It seems to be future development incompatible because the multi-entity branch looks abandoned?
Looking at schema.xml it seems that should support multiple entities
Wouldn't adding a function apachesolr_user_to_document($node, $namespace) based on apachesolr_node_to_document($node, $namespace) be a better idea? (or maybe extracting the global functionality like indexing of field to a function apachesolr_entity_to_document($type, $content, $namespace)?)
Or is the search_api module with a solr backend a better alternative?
Comment #5
eescribano commentedI have followed these steps and it has been impossible to index correctly the data.
There is a new tab called "indexing" and there I select only blog and user and I re-index the content and it indexes all content types but the entity users.
Is there a way to index differently? I have tried to run crons to index the content and that gives me an error.
Recoverable fatal error: Argument 1 passed to field_apachesolr_indexer_document_build() must be an instance of ApacheSolrDocument, null given in field_apachesolr_indexer_document_build() (regel 750 van /home/eescribano/src/oostnv_intra_apachesolr/sites/all/modules/contrib/apachesolr/apachesolr_indexer/apachesolr_indexer.module).Could you please say which versions of apache solr server, apachesolr multientity, and drupal do you have installed so I can try to make it work in my instance?
Thanks in advance!
Comment #6
nick_vhInternetDevels.Com I think you will have to reroll this patch against the most current version of Apache Solr (7.x-1.x) and also make sure that you don't include rewrites in your patch that are not related to the functionality that you'd like to add. I do understand that it is confusing with the different versions. Maybe you could even consider closing this thread and follow up on http://drupal.org/node/966796 ?
The patch that I see here doesn't give me a crisp idea on how to add users to the index. I think a function apachesolr_user_to_document($user, $document) would be a more reasonable approach as well but I haven't got into deep research about this.
Could you also explain why you would rename some of the things?
- * @param Apache_Solr_Document $document
+ * @param ApacheSolrDocument $document
Note: I haven't seen they did that in the other patch. Please join the other issue to prevent confusions
Comment #7
pwolanin commentedto reiterate, this is duplicate - please join the other issue
Comment #8
presleyd commented@pwolanin
You aren't reiterating here in this issue at least. What other issue? Link to the duplicate would be ideal.
Comment #9
ChrisFlink commented@presleyd issue: #966796: Separate indexer for multiple entity types as mentioned by Nick_vh.
I moved to that topic and for me it is ok to close this one.
Comment #10
forestmars commentedAnyone randomly finding this should probably know about apachesolr_user