I have a solr index available using SolrNet, and I would like to get the index (position) of a specific document in the results without returning the entire set of results.
In more detail ... the query returns ~ 30,000 documents and is sorted by integer field. The unique key field contains Guid, and I would like to find where in the results a specific document based on a unique key, only returning the first 10 results.
This index was originally implemented in plain old Lucene, and this task was achieved with two queries: one to get the document identifier lucene of the document that I want to know about, and then the second, which returns the entire result set. Then I can use the doc identifier to find where the document appears in the full set of results, but then only list the documents for the first 10.
Is there a way to achieve what I get after Solr without returning all 30,000 results (even limiting this to Guid only seems too slow)?
thanks
source share