Needs work
Project:
Apache Solr Attachments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2010 at 22:19 UTC
Updated:
25 Feb 2015 at 20:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aaron1234nz commentedI found a bug. Here is a better version
Comment #2
pwolanin commentedQuick read through the patch, looks like a reasonable start. However, I'm suspecting that the same file will now appear in the search results multiple times?
Comment #3
aaron1234nz commentedYes you are right in that the same file will appear multiple times in the search result. I'm not sure if this is desired behaviour or not? When I was writing the patch I could not decide if one result should come back, referencing all the nodes it was attached to or one result per node.
If only one result comes back, then filtering (via facets) on author (and possibly node properties?) would become very difficult. Coding this options would also require quite a bit of thought.
The other option was easier to implement. My thinking was also that each node has its own context (written about a specific topic), so one result per node per file attachment might not be a bad idea.
Comment #4
pwolanin commentedGiven that this is a relatively rare use case in the Drupal world in D6, maybe we can live with the multiple results.
Comment #5
pwolanin commentedIt would seem easier to make a composite primary key?