spring-data-solr icon indicating copy to clipboard operation
spring-data-solr copied to clipboard

DATASOLR-484 Add possibility to optimize collection

Open cipous opened this issue 7 years ago • 1 comments

  • [ x] You have read the Spring Data contribution guidelines.
  • [x ] There is a ticket in the bug tracker for the project in our JIRA.
  • [ ] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • [x ] You submit test cases (unit or integration tests) that back your changes.
  • [x ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

cipous avatar Oct 01 '18 08:10 cipous

I hope that PR is clear, Please let me know if something needs to be added. The reason why we need optimize() is that our tests are unstable on sorting by score, we discovered, that even deleted documents are effecting score, so that`s why we need optimize to be called before sorting test

cipous avatar Oct 01 '18 10:10 cipous