Comments (4)
@stefangomez Good idea - definitely see this being useful. There are 2 potential ways to achieve this:
- Allow the weights to be specified in the
query_by
parameter in the following format:text:2,author:2,description:1
- Have a separate
query_by_weights
parameter that sets the respective weights for the fields mentioned in thequery_by
parameter, e.g.query_by=text,author,description&query_by_weights=2,2,1
No. 2 looks cleaner to me.
from typesense.
Is this feature still planned?
from typesense.
@georgiemathews Yes it is! It's just around the corner - should be out in a couple of weeks.
from typesense.
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)
- Search request with large number for max_facet_values does not terminate HOT 2
- Question: we have multiple tables and have relation between them in that scenario what should we do if we want to implement typesense HOT 1
- Allow late filtering or disable query modifications HOT 3
- Apply Override Selectively to a Query in real time? HOT 1
- GPU mode crash - need Typesense GPU dependencies source HOT 3
- Add support for combined image and text embeddings using CLIP
- Multiple standalone instances on same server HOT 1
- Documents cannot be retrieved if 'id' field contains '/' character HOT 2
- Cannot regenerate access token by valid refresh token for gcp vertexai Text embedding.
- Deleting all documents in collection HOT 1
- A preceding newline is returned when importing a specific record HOT 6
- Ambiguous error (Field `title` is already part of the schema) HOT 2
- BUG - Typesense does not considers "query_by_weights" when equal weightage is same
- [Joins] Having issue with the querying HOT 26
- Alias names are not reserved if the collection it's pointing at doesn't exist HOT 3
- Feature request: disable typos for alphanumeric tokens (combination of numbers and other characters) HOT 1
- Optimizing Query Suggestions HOT 1
- [Silly question] How does search speed scale with CPUs for a single query HOT 1
- Index problems with a special Icelandic character HOT 4
- Synonyms like k8s <-> kubernetes aren't working with enabled stemming HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typesense.