-
Notifications
You must be signed in to change notification settings - Fork 683
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
Storing additional data #2083
Comments
Hi @CGenie |
Sure: https://git.sr.ht/~cgenie/bleve-geo-test/ Basically when I add
|
BTW, I am able to cheat a bit and set |
OK so apparently when I set searchRequest.Fields = []string{"*"} and then print out {"id":"ABC1","score":0.21019982325694714,"sort":["_score"],"fields":{"location":[77.68416429350248,13.019409348028574],"location.Lat":13.019409351686077,"location.Lon":77.684164354519,"name":"ABC1","tags.tag1":"a","tags.tag2":"b","type":"myDoc"}} So this seems to be indexed as |
OK and apparently I can fetch a single field via |
Hello,
I want to have an index, but one that stores some additional data so that when I query the index, I can fetch that data (not search on it). How can I do it?
I tried something like
type Tags = map[string]string
andApparently I can index my document with
Tags
, but when I try to search for it like this:I get an error:
The text was updated successfully, but these errors were encountered: