I'm building a Java Lucene-based search system that, on addition, adds a certain number of meta-fields, one of which is a sourceId field, which denotes where the entry came from.
I'm now trying to retrieve all documents from a particular source, but the index doesn't appear to be able to find them. However, if I search for a wildcard value, the returned documents all have the correct value for this field.
The lucene query I'm using is quite simple, basically index-source-id:1
but that fails to return any hits, if I search for content:a*
I get dozens of documents, all of which, when asked, return the value 1
for the index-source-id
value, which is correct.
Any ideas?