Questions tagged [nhibernate.search]

NHibernate.Search is an extension to NHibernate that allows you to utilize Lucene.NET, a full text search engine as your query engine, instead of putting additional load on the database itself.

NHibernate.Search brings the power of full text search engines to the persistence domain model by combining NHibernate with the capabilities of the Lucene.Net search engine.

NHibernate.Search is a port of Hibernate.Search. As stated on the Hibernate.Search Overview page (JBoss Community):

Full text search engines like Apache Lucene™ are very powerful technologies to add efficient free text search capabilities to applications. However, Lucene suffers several mismatches when dealing with object domain models. Amongst other things indexes have to be kept up to date and mismatches between index structure and domain model as well as query mismatches have to be avoided.

Hibernate Search addresses these shortcomings. It indexes your domain model with the help of a few annotations, takes care of database/index synchronization and brings back regular managed objects from free text queries. Hence, it solves:

  • The structural mismatch: Hibernate Search takes care of the object/index translation

  • The duplication mismatch: Hibernate Search manages the index, keeps changes synchronized with your database, and optimizes the index access transparently

  • The API mismatch: Hibernate Search lets you query the index and retrieve managed objects as any regular Hibernate query would do

The Nuget Package can be found here: http://nuget.org/packages/NHibernate.Search

More information on the original version of Hibernate.Search can be found here: http://www.hibernate.org/subprojects/search.html

88 questions
14
votes
1 answer

NHibernate Linq Query is 3x slower than HQL

I have a simple test that runs a query 5000 times. The linq version of the query takes over 3 times the HQL and the cached Linq version is significantly slower than the cached version of HQL HQL: session.CreateQuery(String.Format("from Episode where…
kay.one
  • 7,622
  • 6
  • 55
  • 74
11
votes
5 answers

The ProxyFactoryFactory was not configured

Considering this example as a base example, I created the application but when I execute this application I am getting the following error. The ProxyFactoryFactory was not configured. Initialize 'proxyfactory.factory_class' property of the…
9
votes
1 answer

Lucene.NET Search Highlighting that respects HTML Tags

I am trying to highlight search terms in a block of HTML, the problem is if a user does a search for "color", this: White becomes: White and obviously, messing up my…
Adam Greene
8
votes
1 answer

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?
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
6
votes
1 answer

Eager Loading of Tree / Hierarchies using Nhibernate

This is not a question as such, I have been researching this subject for the last few days and thought I would like to contribute something that pulled in a lot of the disparate ideas that I've been reading about and put forward my solution to the…
Phil Whittaker
  • 434
  • 4
  • 20
3
votes
1 answer

Integrating Nhibernate.Search with Nhibernate 2

I have just spent all day attempting to get NHibernate.Search working alongside NHibernate 2.0 and am sorry to say that I have still not managed it. I ran into the problem posted here and downloaded the dll linked by that post, however the example…
Jack Ryan
  • 8,396
  • 4
  • 37
  • 76
3
votes
2 answers

Lucene.Net (2.9.2.2) and Nhibernate.Search

I would like to use Lucene.Net ver. 2.9.2.2 with nHibernate Search. I would like to use one of the latest nhibernate versions, possibly. I've seen there's a nuget package in the gallery but it doesn't work for me. When I try to compile I get the…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
3
votes
2 answers

Fluent NHibernate + Lucene Search (NHibernate.Search)

I'm using Fluent NHibernate and I would like to implement NHibernate.Search with Lucene but I can't find any examples on how to do that with Fluent NHibernate. It appears there are two steps. (According to Castle) Set the Hibernate properties in…
3
votes
1 answer

How to add NHibernate configuration file to use NHibernate.Search?

I try to use NHibernate.Search that I built from trunk and use with NHibernate 2.0.1. When I add some NHibernate.Search properties config into configuaration file:
Samnang
  • 5,536
  • 6
  • 35
  • 47
3
votes
1 answer

nHibernate.Search with nHibernate v2

I having trouble getting nHibernate.Search to create an Index. If I use 1.2.1.4 of nHibernate.dll & nHibernate.Search.dll then the index is created correctly and I can inspect it with Luke (a Lucene utility). A segments file is created as well as a…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
3
votes
1 answer

(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…
mathieu
  • 30,974
  • 4
  • 64
  • 90
3
votes
2 answers

How can you add numeric fields in Nhibernate.Search?

I recently mitakenly assumed that Nhibernate.Search would index an integer property on my class as a numeric field. [Indexed] public class Location : Entity { [IndexedEmbedded(Depth = 1, Prefix = "Country_")] public virtual Country Country {…
Richard
  • 21,728
  • 13
  • 62
  • 101
3
votes
3 answers

how do i filter my lucene search results?

Say my requirement is "search for all users by name, who are over 18" If i were using SQL, i might write something like: Select * from [Users] Where ([firstname] like '%' + @searchTerm + '%' OR [lastname] like '%' + @searchTerm + '%') …
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
3
votes
2 answers

Is there a good documentation of NHibernate's query by example feature?

I'm trying to find a good documentation which states exactly, what query by example is capable of and what not. In particular, I want to know, if query by example supports a search like the following: I want to get all Persons which have a location…
Oliver Hanappi
  • 12,046
  • 7
  • 51
  • 68
2
votes
1 answer

Error using NHibernate

Considering this example as a base example. I created the application but when I execute this application getting the following error. The ProxyFactoryFactory was not configured. Initialize 'proxyfactory.factory_class' property of the…
1
2 3 4 5 6