Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Term types #19

Open
anna328p opened this issue May 7, 2023 · 3 comments
Open

Term types #19

anna328p opened this issue May 7, 2023 · 3 comments

Comments

@anna328p
Copy link

anna328p commented May 7, 2023

Are there plans to support term queries for types other than strings?

@baygeldin
Copy link
Owner

The only available tokenizers right now are string based (thus term queries only make sense for strings), but I had plans on supporting custom tokenizers. However, I'm not going to lie: I've been swamped for the past year and I just can't say when I'd have the energy for that.

@anna328p
Copy link
Author

What's the best way to query integer columns for exact matches? Right now, the only way I can see is by using a range_query(x..x), which seems inefficient...

@baygeldin
Copy link
Owner

You could make the column string based and search for the exact value. That being said I'm not sure if it will make a significant difference, range queries are supposed to be pretty fast. You would probably need to do some benchmarks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants