I'm querying a Lucene index file which structure I didn't build. This index contains Documents with fields structured like this:
As you can see the 'type' field is always empty, however the 'all' field contains data formatted in a way so that is searchable and it contains a type=ta
sort of syntax.
The weird thing is that when I query this index using type:ta
it actually outputs something even though the type field is always empty.
What's happening here?
EDIT
After googling a bit more I found out a weird concept (at least for me, coming from SQL database background) that data can be stored (Store.YES and Store.NO) in different ways . Lucene indexing: Store and indexing modes explained
This is a very unusual concept for me as I don't find many reasons to NOT store data. What's the reason behind using Store.NO? I will most likely always want to have the data there even though I'm not displaying it anywhere... I mean if data is indexed it must be stored anyhow, right?