-
Notifications
You must be signed in to change notification settings - Fork 8
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
Query syntax: Add support for spaces in field names #76
Comments
It would also be be nice to match multiple fields against the same expression. Let's assume I want to match the same query against the UTF8 and the ASCII representation of a customer name: var index = new FullTextIndexBuilder<int>()
.WithObjectTokenization<Customer>(o => o
.WithId(c => c.CustomerId)
.WithField("Customer Name", c => c.Name)
.WithField("Customer ASCII Name", c => c.AsciiName) If possible, I'd like a query without repetition, e.g. Or let's assume I want to search a group of dynamic fields sharing the same same prefix or suffix - Obviously, this can be worked around by OR-combining the same query for different field names - so it may really just a be a convenience feature for people manually writing LIFTI queries. |
Nice - I like the idea of being able to wildcard a field name in the query - with a dynamic field the exact names of all the fields might not be known. |
@h0lg out of interest, what's your use-case for wanting a suffix wildcard match, e.g. |
I'm going to split wildcards out to #77 - they add significant complexity and implementing this feature without them add its own value. |
Breaking changes: [ and ] now special characters in query syntax
I could get the idea to group fields by a common name suffix instead of a common name prefix; e.g. if I wanted to search |
Breaking changes: [ and ] now special characters in query syntax
This is completed and will be in the v6 release |
Breaking changes: [ and ] now special characters in query syntax
Among other things... * Use latest C# version * Added support for bracketed field names #76 * Added field score boosting #72 (#83) * Added field score boosting #72 * Added score boosting query syntax #72 * Add .NET 8 as a target * Item score boosting (#95) * Allow characters to be escaped in query syntax #85 * Removing ImmutableCollections (#97) * Speed up field collection prior to scoring (#102) * Added support for adding custom stemmers #82 (#103) * Apply field filters while collecting results * Filter documents at navigator level #105 * Added query part weight calculations #105 Refactor query match collection primitives
At the moment fields can be registered statically or dynamically with spaces in them:
But there's no way using the LIFTI query syntax to filter on a field name with a space in it:
The first part of the field name becomes part of the query.
We need to introduce something to quote a field name, e.g.
We'd need to allow for edge cases where the field name contains a close bracket and it needs to be escaped.
The text was updated successfully, but these errors were encountered: