Git Product home page Git Product logo

Comments (4)

kishorenc avatar kishorenc commented on May 14, 2024 1

@stefangomez Good idea - definitely see this being useful. There are 2 potential ways to achieve this:

  1. Allow the weights to be specified in the query_by parameter in the following format: text:2,author:2,description:1
  2. Have a separate query_by_weights parameter that sets the respective weights for the fields mentioned in the query_by parameter, e.g. query_by=text,author,description&query_by_weights=2,2,1

No. 2 looks cleaner to me.

from typesense.

georgiemathews avatar georgiemathews commented on May 14, 2024

Is this feature still planned?

from typesense.

jasonbosco avatar jasonbosco commented on May 14, 2024

@georgiemathews Yes it is! It's just around the corner - should be out in a couple of weeks.

from typesense.

jasonbosco avatar jasonbosco commented on May 14, 2024

Just released v0.18.0 with the ability to specify custom weights for fields, using the new query_by_weights parameter: https://github.com/typesense/typesense/releases/tag/v0.18.0.

For eg: query_by_weights: 1,1,2 with query_by: field_a,field_b,field_c will give equal weightage to field_a and field_b, and will give twice the weightage to field_c comparatively.

from typesense.

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.