I have this mapped class called as "Client" used for NHibernate and is decorated with Lucene search attributes. When NHibernate.Search does initial indexing, I found through Luke that the special property _hibernate_class shows following value for some documents(index docs)...
CProxyTypeABC_Common_EntitiesClientEntities_NHibernate_Proxy...
When I was using Lucene to index my entities, I had the habit of putting all my indexed properties in a field named "all", to perform a search on "all" of my entities types.
Now, using NHibernate.Search, I can't find how to do this. I tried this :
[Indexed(Index = "MyIndex")]
public class Post
{
[DocumentId]
public virtual int ...
I have the following code
string idName = builder.IdentifierName;
Disjunction disjunction = Restrictions.Disjunction();
IList ids = new ArrayList(entityInfos.Length);
foreach (var entityInfo in entityInfos)
{
ids.Add(entityInfo .Id);
}
disjunction.Add(Restrictions.In(idName, ids));
criteria.Add(disjunction);
criteria.List();
(I ha...
Hello everybody
i've been busy upgrading our n* stack to a more recent version. We'd been using FluentNhibernate for configuration and Nhibernate.search coupled with Lucene.Net for full-text search. Everything worked fine until i changed the various versions of the libraries to the following:
FluentNHibernate.dll: 1.0.0.593
NHibernate...
Hi,
How can i rebuild Lucene.NET Index using NHibernate.Search ?
Thanks.
...
How-to use NHibernate.Search Projections ?
...
Bit confused here,
How’s Solr or Solrnet any different from Nhibernate Search? Does Solr offer anything more to Lucene.net that Nhibernate Search?
...
I'm currently trying to use NHibernate.Search, but i need to get score for each results returned by the query.
Anyone know something about how to do that ?
Thanks.
...
Hi,
can someone tell me how to use nhibernate serach and lucene with fluent nhibernate. I have my application writen with fluent nhibernate but now i need full text serach but do not know how to implmenet nhibernate search with lucene to fluent nhibernate.
i found this but it is not much and do not know how to use it:
http://stackoverf...
How to use 2nd Level Cache with NHibernate.Search ?
I tried to enable SetCacheable on FullTextQuery, but it doesn't work.
var session = Search.CreateFullTextSession(database.Session);
session.CacheMode = CacheMode.Normal;
var textQuery = session.CreateFullTextQuery(query, new[] { typeof(Job) });
textQ...
Context =>
Calling wcf, some random stored procedures and sql stuff theoretically imports some data.
Requirements =>
Reindex lucene indexes for some of imported entities.
Question =>
What's the easiest way to do that?
Theoretically, if nhibernate is initialized, nhibernate.search should be aware which entities are supposed to be ind...
How to make Lucene.NET Query '#' and '+' characters ?
Like "C#" and "C++"
Note : i use NHibernate.Search
...
Using Nhibernate.Search at the moment.
Some code for context:
[Indexed]
class foo {
[DocumentId]
int id {get;set;}
bar bar {get;set;}
}
[Indexed]
class bar {
[DocumentId]
int id {get;set;}
}
Question:
How to retrieve all foos where foo.bar.id==1 using IFullTextQuery?
...
Part I here...
Requirement:
search by multiple values in multiple fields AND Where Bar.Id == argBar.Id
var parser = new MultiFieldQueryParser
(new[] { "Name", "Title" }, new SimpleAnalyzer());
parser.???(string.Format("Bar.Id:{0}",argBar.Id)); // o_0
var query = Session.CreateFullTextQuery
(parser.Parse(searchValue), new[] {...
Does anyone already use LinqToLucene with NHibernate.Search?
How to getting started ?
Thanks.
...
And how it differs from IndexedEmbedded?
P.s. and what's the best source of information about NHibernate.Search?
...
This is silly, but i can't understand how to do it.
Checked out from svn (https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib) source, but when i try to build it, there's bunch of errors about FullTextSessionImpl which does not implement ISession interface members.
Tried hornGet, but it shows "The build tool Horn.Core.NAntBuildTool...
Is there anyway to keep true POCO Entities while working with Lucene.NET through NHibernate.Search ?
It seems that Lucene.NET (NHibernate.Search) mapping only work with Attributes within Entity classes.
...
Hi,
I'm trying using NHibernate.Search to get Lucene.NET Score through projections.
My domain object implements an interface IScorableEntity
public interface IScorableEntity
{
float Score { get; set; }
}
...
IFullTextSession session = Search.CreateFullTextSession(database.Session);
IFullTextQuery textQuery = session.CreateFullT...
I've been working with NHibernate, NHibernate.Search and Lucene.Net to improve the search engine used on the website I develop.
Basically, I use it to search contents of corporations specification documents. This is not to be confused with Lucene's notion of documents: in my case, a specification document (which I'll hereafter call a "...