nhibernate.search

NHibernate Search - _hibernate_class problem

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...

(N)Hibernate.Search : Index different properties in one field

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 ...

[NHibernate] A correct way to load entities by Id list when Id is not mapped

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...

Twin Lucene index directories after Nhibernate.Search upgrade

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...

NHibernate.Search Index Rebuild

Hi, How can i rebuild Lucene.NET Index using NHibernate.Search ? Thanks. ...

NHibernate.Search Projections

How-to use NHibernate.Search Projections ? ...

Solr or Nhibernate Search

Bit confused here, How’s Solr or Solrnet any different from Nhibernate Search? Does Solr offer anything more to Lucene.net that Nhibernate Search? ...

Get Score with 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. ...

Fluent nhibernate + nhibernate.serach + lucene.net

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

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...

Easiest way to reindex lucene.net indexes when nhibernate.search used?

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 ?

How to make Lucene.NET Query '#' and '+' characters ? Like "C#" and "C++" Note : i use NHibernate.Search ...

Lucene 'join' how-to?

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? ...

Lucene 'join' how-to? part II

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[] {...

Using LinqToLucene With NHibernate and NHibernate.Search

Does anyone already use LinqToLucene with NHibernate.Search? How to getting started ? Thanks. ...

What does NHibernate.Search ContainedIn attribute do?

And how it differs from IndexedEmbedded? P.s. and what's the best source of information about NHibernate.Search? ...

How to get&build latest version of 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...

Lucene.NET through NHibernate.Search and POCO Entities

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. ...

NHibernate.Search Projections

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...

Manipulate score/rank on query results from NHibernate.Search

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 "...