-
Notifications
You must be signed in to change notification settings - Fork 125
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
Can you give some guides to use otherTree on Numeric Field? #115
Comments
Sure, so one of the last things I did for the Bleve project before leaving was to prototype something I called "index sections". The code for this is in this commit: blevesearch/bleve@674c535 The basic idea (as I recall, I have not read the details of this commit recently) was to introduce a new concept to the bleve index. Today, for a field there is just a single type of index, the inverted index. Our idea was that there should be support for other indexes, but because of the design of Bleve, we allow people to mix different data types in fields. So, we can't just say field X is type Y and use the appropriate index, because at runtime someone can hand us some document with a different type for that field. Anyway, the idea was that all of the existing code, folds into an implementation of a "inverted index" type. There are some basic things that all index sections need to support to co-exist with the inverted index, but we also allow for the new index sections to support new access methods. So, this was my approach to extend the existing structures to support new sections in the index (that use some new data-structures appropriate for certain type of data). Something pretty similar should be possible as code is still roughly organized the same way. If you have other ideas about how to go about this, please share. |
Also, I just remembered, that commit includes an example second index type, it uses a sorted slice and binary search for numeric values. This was not intended to be shipped, but rather to illustrate how a new index section would work. |
Thank you, if have any progress i'll let you know. |
I design like this, What do you think? @mschoch
As these, it can support range query and don't need create many tokens on numeric field. |
I'm trying to use otherTree(B+Tree / BKD Tree) to replace text token on Numeric and DateTime Fields.
For now in Bluge, every thing is text or token. it seems many works to do.
Can you give some guides for this?
The text was updated successfully, but these errors were encountered: