Comments (3)
So, DocValues is different from stored values. DocValues are used for sorting and aggregating. Stored values are not used internally by bluge for anything, the only thing we can do is return the back to you.
Your existing use of VisitStoredFields looks correct, it's just that you're not storing the value. You should add a call to StoreValue()
when building the field. Something like:
doc.AddField(bluge.NewTextField("name", c.name).StoreValue())
from bluge.
Seems like it is not in the latest available go module which is 0.1.5 for me.
UPD: sorry, overlooked parenthesis order =)
Thank you for the response, going to continue exploring!
from bluge.
I got bitten by this too. I thin the docs and website should be updated to refeclt this. It wasn't obvious to me at first to call .StoreValue()
on the fields I'm adding. Thanks!
from bluge.
Related Issues (20)
- panic while merging in unit test HOT 5
- ice v2 data race HOT 6
- Comparison with Bleve and others HOT 1
- index out of range when visiting stored fields HOT 4
- Date aggregations support HOT 2
- TestBug87 fails in custom implementation of search.Context HOT 2
- Question on aggregation bucket HOT 2
- makeslice len out of range
- Define logger interface
- multi index search
- Example of indexing a document with tags? HOT 1
- Difference between a NewTextField() and NewKeywordField()
- Sorting by ascending order of _score
- Indexing/Analyzing URLs, Email Addresses, etc?
- Indexing/Querying Emojis
- Is there a way to use this library more as a caching layer?
- Concurrently close writer panic HOT 1
- Pre-query for getting terms list.
- index out of range panic
- Memory Size or Limiting Memory usage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluge.