I'm trying to incorporate Linq to Lucene in my Asp.net-mvc project.
As with most web projects, I use the PagedList type I put in my personal helper library and use it all over the place.
But so did Linq to Lucene...
Since both my library and the L2L library want to add the PagedList type to System.Collections.Generic namespace, I get a c...
I have decorated my entity's partial class as such:
[Document(MetadataType=typeof(CompanyMetaData))]
public partial class Company{}
And created a meta data class as such:
class CompanyMetaData
{
[Field(FieldIndex.UnTokenized, FieldStore.Yes, IsKey = true)]
public object Id { get; set; }
[Field(FieldIndex.UnTokenized, ...
I am trying to implement Linq To Lucene in my project, but when trying to search for something, I am always getting a Enumeration yielded no results result and when I debug and try to open my [IndexContext].[TableProperty] in the Watch window, I am getting this message:
The predicate of a Lucene Term can not
be the empty string.
...
Does anyone already use LinqToLucene with NHibernate.Search?
How to getting started ?
Thanks.
...
What is the proper usage pattern for LINQ to Lucene's Index<T>?
It implements IDisposible so I figured wrapping it in a using statement would make the most sense:
IEnumerable<MyDocument> documents = null;
using (Index<MyDocument> index = new Index<MyDocument>(new System.IO.DirectoryInfo(IndexRootPath)))
{
documents = index.Where(d...