chriseldredge / Lucene.Net.Linq

LINQ provider to run native queries on a Lucene.Net index
Other
151 stars 65 forks source link

Other Lucence.NET commands #51

Closed emdadgar2 closed 10 years ago

emdadgar2 commented 10 years ago

Is there any way to query agains another Lucence.NET commands like SpellChecker or MoreLikeThis or DocFreq?

chriseldredge commented 10 years ago

I just added a sample for MoreLikeThis in MoreLikeThisSample.

I think you would handle spell checking outside of LINQ since you want the raw terms and not what comes through analysis and query transformation.

You could do something similar to the MoreLikeThis sample for DocFreq.

emdadgar2 commented 10 years ago

Thanks, but DocFreq output is a keyword and freq. number that different from original structure. Can you create sample for DocFreq too?

Thanks again

chriseldredge commented 10 years ago

The MoreLikeThis example shows how to access the IndexReader instance in PrepareSearchSettings. From here you can call docFreq with whatever Terms you want and save the results on a property for later retrieval.