-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow searching on size of fields #240
Comments
I implemented this! But it won't work until we use Elasticsearch 7+. See: 37a03da You can write |
Well, I kinda understand but not really... when you have a string field then we create two fields in Elasticsearch, Then it seems like the query that we run to get the length only works on |
When adding an entry into Elasticsearch, I think that |
Both of them seems to be case insensitive though 🤔 |
@nick8325 after the update to ES8, this works. But maybe the backend can figure out if we should use |
Another thing. Current solution only works on leaves in the document, not nodes. For example, in our test corpus Also, if we have an entry:
|
I suppose we should automatically rewrite The thing with Another thing: Right now there's no indexing for |
Oh another thing: it seems like length queries return the number of queries not counting duplicates. I just tried this out, a version of
And now a query with |
I think that this is because everything is flattened in the index. So Maybe indexing the length in some way would be preferable, maybe even adding it to the document ourselves, for example, |
Allow searching on size of fields, for example, all entries that have more than one word class.
Needs new construction in query language.
The text was updated successfully, but these errors were encountered: