Needs review
Project:
Search API Entity Translation Solr search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2014 at 12:26 UTC
Updated:
23 Mar 2017 at 14:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gigabates commentedComment #2
gigabates commentedComment #3
gigabates commentedPrevious patch also included changes relating to another issue.
Comment #4
gigabates commentedInclude truncate option in grouping to fix facet counts. Sorry for the patch overload!
Comment #5
maciej.zgadzaj commentedTo be honest I don't believe this to be a correct approach.
I mean, it's ok in that it fixes this behaviour (which I'm aware of, since few days now), but I don't think it's here that it should be done. For one, this module is just a bridge between solr and Search API, and as such shouldn't really change the results being sent over from solr.
Then, what about Search API using
search_api_db? Or any other storage engine? No, this needs to be fixed insearch_api_etitself.First step in that direction was adding a new processor doing just that, the second part would be modifying the count query, using the same processor if only possible (haven't even started looking into it yet).
Therefore marking this one as won't fix here, sorry.
Comment #6
gigabates commentedThe thing is though, I don't think there's an engine independent way to do this that doesn't break pagination. I can't see how the processor approach could alter the count query as it's only after we've fetched the results we can know which results are duplicates and shouldn't be counted. The only way we can use native range queries is if the duplicate results aren't in the result set in the first place. The only option I can think of would be to fetch all the results and handle pagination within the module, which would be inefficient for large data sets. Maybe a compromise would be to use that as the default implementation in Search API Entity Translate and allow engine specific modules such as this one to override it with native methods.
Comment #7
gigabates commentedRerolled a correct version of that last patch if it's useful to anyone anyway.
Comment #8
maciej.zgadzaj commentedRe-opening as a follow-up to #2232647: Duplicate view results being rendered
For anyone interested in temporary fix - Search API Grouping module with grouping on
nidenabled seem to solve this nicely everywhere.Comment #9
sutharsan commentedI've taken a different approach to this duplicate results problem. I've created an issue with patch for the situation with language neutral + two languages: #2386457: Duplicate results of partially translated content types My problem was caused by using a mix of translated (body) and untranslated fields (term references) in a translatable content type.
Comment #10
barig commentedHi everyone !
I know this topic is like... dead for 2 years now but I ran into the same issue on a multilingual solr index. The issue looks more like an indexation issue ( I've got my nodes indexed with item_id = NID/fr and NID/en BUT also, a ridiculous NID and this one is causing the issue.
Using grouping is a workaround but I don't have time to look deeper into indexation process.
I've regenerated the patch for the current 7.x-1.x-dev and removed "unnecessary" things from it.
Comment #11
amme commentedComment #12
mrchristophy commentedJust come across this problem. Just out of interest, why is the Search API Grouping module considered a temporary workaround and not a solid solution?