Giter VIP home page Giter VIP logo

Comments (4)

ts-thomas avatar ts-thomas commented on May 5, 2024 1

Hello. Field-Search is already available. Just boosting specific fields will come in the next version which will be 0.7.0, the usage will also explained in the documentation, it is very close to your example :)

from flexsearch.

georgyfarniev avatar georgyfarniev commented on May 5, 2024 1

Also, would be great to have boosting by value of numeric field stored in document. For example, it's useful to sort products by categories with different priority.

from flexsearch.

ts-thomas avatar ts-thomas commented on May 5, 2024

I have thought about it once again. There are two types of sorting:

  1. sort by score
  2. sort by field value

Basically 1. and 2. are already available. For 2. there are also customization available. A way how to customize the sort by score is actually missing. This could be done by manipulate the scoring calculation, e.g.:

  1. boost score by a custom multiplier (per field, comes in v0.7.0)
  2. boost score by query elevation (sponsored search)
  3. adjust score by feedback (to sort by popularity)
  4. calculate score by a custom function (when indexing)

Your example "sort by a dynamic field value" (e.g. priority) may already be possible with a custom sorting, in addition the custom function at 4. can be used to pre-score per field value (e.g. priority). When 1. and 4. are finally available we need to check if we can find an example, which is not covered by the available features.

from flexsearch.

ts-thomas avatar ts-thomas commented on May 5, 2024

Please change over to the version >= 0.7.x, thanks a lot. Support for a custom "boost" function will be available soon.

from flexsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.