Relative Content

Tag Archive for c#.netlucenelucene.net

Lucene.NET : No fields returned from IndexSearcher.Doc only when using DrillDownQuery

I am currently trying to implement a search using facets with lucene.NET and I feel like I have hit a wall with this issue now. I was able to create an index and a taxonomy index. I can do both text search against index fields, and I can do facet search and retrieve dims and labels with counts without issue. but I want to be able to do a drill down query with facets and not only return the counts but also the documents and stored fields. The issue I am seeing is that whenever I do a search that includes a DrillDownQuery and then get the ScoreDocs and try to call IndexSearcher.Doc(int docID), the correct document is found but all of the fields are missing in the response. Then I can run the same code but switch the DrillDownQuery with any other type of query and IndexSearcher.Doc(int docID) will return the correct document including all of the expected fields. What am I missing?