lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <>
Subject RE: [Lucene.Net] Extracting IsStored fields from a search result
Date Wed, 11 Jan 2012 23:00:36 GMT
Hi Chris,

There are many methods of IndexReader you can make use of.
For ex, to get the field names in the index "GetFieldNames" or to get the
terms "Terms".
I posted here ( a simple example to get all
terms in the field "myfield".


-----Original Message-----
From: Chris Lomax [] 
Sent: Wednesday, January 11, 2012 1:27 PM
Subject: [Lucene.Net] Extracting IsStored fields from a search result

I am trying to extract anything that is a field "IsStored" for use in 
filtering lists

e.g. When you access an ecommerce site and you get the filter lists down 
the left hand side, I wanted to store anything that I wanted filtering 
and when I performed a search I wanted to create a lookup list from 
these IsStored values.

I started something yesterday where I iterated over the fields returned 
from the search results and picked out anything that was IsStored but I 
feel there must be a more efficient way of doing this. I can not find 
any documentation relating to this type of extraction.

Could anyone offer any advice on this?

Also, the dll does not work on as there are fields named the same 
in the classes. For example, "ScoreDocs" in the 
Lucene.Net.Search.TopDocs has a variable and a property declaration but 
they are both set to Public so .Net cannot see the property. I had to 
modify the class so the variable was private.



Checked by AVG -
Version: 2012.0.1901 / Virus Database: 2109/4736 - Release Date: 01/11/12

View raw message