I run a simple test - trying to index something and then look for it. I index a simple document, but then when I search for a string in it, I return what the empty document looks like (it has no fields). It seems that Lutsen is doing something, because if I search for a word that is not in the document, it returns 0 results.
Any reason Lucene will reliably return a document when it finds one that matches the given query, and yet this document has nothing in it?
More details:
I actually run Lucandra (Lucene + Cassandra). This, of course, can be an important detail, but not sure.
Fields are set as Field.Store/YES and Field.Index / ANALYZED
- Interestingly, I can make this work fine on my local machine, but when we put it on our main server (which is the cassandra multi-node installation), I get the behavior described above. So this seems like probably the relevant detail, but unfortunately I don't see an error message that tells me exactly what causes it.
source
share