Closed (works as designed)
Project:
Search API
Version:
7.x-1.14
Component:
Framework
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2015 at 21:23 UTC
Updated:
13 Jan 2016 at 07:58 UTC
Jump to comment: Most recent
Comments
Comment #1
mediaformat commentedLooking at the results, the duplicate(result) always appears immediately before the correct result.
There are some cases where only a date is returned.
Also, filtering duplicates per field(excerpt, date) does nothing.
Comment #2
mediaformat commentedUsing Search API with Apache Solr not "Search API Solr Search" module.
Comment #3
mediaformat commentedRe-indexing does not affect results : #2445391: Duplicate results when sorting in a page with a pager
Views preprocess duplicate removal also has no impact #1223448: Distinct doesn't work when sorting by field with multiple values
Comment #4
mediaformat commentedComment #5
mediaformat commentedAn update of what I have tested:
Views
Search API - View Index - Filters
Search API - View Server - Using Solr Service - Advanced
The result is still an extra empty row in my View
Comment #6
mediaformat commentedComment #7
mediaformat commentedSo the duplicates I see are now only seen in admin mode.
Why certain nodes are duplicated remains a mystery
Comment #8
mediaformat commentedComment #9
drunken monkeyThe search_api and apachesolr modules are completely separate, they don't work together at all. If you are using the Search API with a Solr server, you have to be using (at least) search_api_solr. If you use that and apachesolr, this might explain your problems. If you are using search_api for your searches, you can uninstall the apachesolr module. Clear the Solr index afterwards (optimally, by emptying the index's
data/directory in the Solr installation) and the duplicate results will hopefully vanish.Otherwise, please provide more details about your setup – especially, what type of Search API server are you using?
Comment #10
mediaformat commentedMy mistake, looking at the modules, I do have search_api, and search_api_solr.
I had installed the module at some point...
I cleared the Solr Index and things seem to be normal.
Thanks
Comment #11
weynhamzI am using search_api_db module, and the final SQL to get the results is ordered by 'score' AKA 'relevance', and the value of this field is the same for some records, with pager, the sort result is not stable, which will result a record appears in two different page range, but certainly, the duplicates will not show in the same page.
We'd better provide a second sort key which can result a stable sort.
For more detail, please see my comment in a relevant issue: https://www.drupal.org/node/2445391#comment-10743046