I have gone through the following links:
- https://cwiki.apache.org/confluence/display/solr/DocValues
- lucene Fields vs. DocValues
- https://lucidworks.com/blog/2013/04/02/fun-with-docvalues-in-solr-4-2/
The last link by LucidWorks is a step in the right direction for newbies, but its all still very confusing.
How are docValues any different from inverted index? Example:
doc1 : "quick brown fox"
doc2 : "quick fox"
doc3 : "brown fox"
Ignoring term-vectors, a simple mental model of the inverted index for the above would be:
quick: doc1, doc2
brown: doc1, doc3
fox: doc1, doc2, doc3
Can someone explain to me how do the docValues look for the above example? And how do they benefit use-case other than simple searching?
Please assume zero knowledge of docValues and please be a little more detailed than just enumerating the benefits of docValues (as done by all the other docs).