On 12/19/2023 23:38, Saksham Gupta wrote:
I have extracted the_version_ field using query:
*fq=uniqueid:{some_value}&fl=_version_*, but upon running filter query
using this same version I extracted; fq=_version_:{extracted_version} it is
unable to find the document.

This is the definition of the _version_ field in my index. I believe this is how the field is defined in all Solr example configs:

  <field name="_version_" type="long" indexed="false" stored="false"/>

The 'indexed="false"' in that definition means that querying on that field is impossible. I suspect that it is not indexed in the sample configs because querying is not needed for the field's function and not indexing it makes the index a little bit smaller.

You would think that having stored as false would mean it wouldn't be returned in search results ... but a field of that type has docValues defined by default, and docValues functionality provides a value for search results by default.

I do not know why you are running into a discrepancy on the _version_ field. It seems very odd.

Thanks,
Shawn

Reply via email to