Questions tagged [compass-lucene]

Compass is an open source project built on top of Lucene aiming at simplifying the integration of search into any Java application.

For the Compass CSS project, see the tag.

Compass is a powerful, transactional Java Search Engine framework. Compass allows you to declaratively map your Object domain model to the underlying Search Engine, synchronizing data changes between search engine index and different datasources. Compass provides a high level abstraction on top of the Lucene low level API. Compass also implements fast index operations and optimization and introduces transaction capabilities to the Search Engine.

Compass aim is to provide the following:

The simplest solution for enabling search capabilities within your application stack. Promote the use of Search Engine as a lightweight application datasource. Provide rich Search Engine semantics to find application data. Synchronize data changes between Search Engine and different datasources. Write less code, find data quicker.

http://compass-project.org/

80 questions
8
votes
1 answer

Compass Lucene hits

I use Lucene and Compass on it and I have a problem: try { CompassHits hits = compassQuery.hits(); for (CompassHit compassHit : hits) { if (results.size() >= maxResults) { Log.info(this, "Number of…
Richi
  • 89
  • 2
6
votes
2 answers

grails searchable plugin query

My Grails app is using the searchable plugin, which builds on Compass and Lucene to provide search functionality. I have two searchable classes, say Author and Book. I have mapped these classes to the search index, so that only certain fields can be…
Dónal
  • 185,044
  • 174
  • 569
  • 824
6
votes
1 answer

Accent insensitive search in Grails

How to make full text search using Grails Searchable Plugin accent insensitive ?
verglor
  • 616
  • 7
  • 21
6
votes
1 answer

Grails hibernate/Searchable stops server to start by giving the exception below

We are using Grails 2.1.1 and Searchable plugin 0.6.4 in our Grails applications and implemented searchable on some domains which are indicated below with all the mappings. class User { ..... static hasMany = [userEducations :…
5
votes
3 answers

Hibernate Search or Compass

I can't seem to find any recent talk on the choice. Back in '06 there was criticism on Hibernate Search as being incomplete and not being ready to compete with Compass, is it now? Has anyone used both and have some perspective on making the…
LostNomad311
  • 1,975
  • 2
  • 23
  • 31
5
votes
1 answer

Grails Searchable Plugin - Filtering Result Set

I am currently using Lucene. My requirement is like facebook search box. User search people and friends. But in my requirement user have privacy settings like name, location, email address are visible to everyone or only friends. He can show and…
Umair Saleem
  • 1,055
  • 5
  • 19
4
votes
2 answers

Querying lucene tokens without indexing

I am using Lucene (or more specifically Compass), to log threads in a forum and I need a way to extract the keywords behind the discussion. That said, I don't want to index every entry someone makes, but rather I'd have a list of 'keywords' that are…
Dom
  • 61
  • 1
  • 3
4
votes
1 answer

Empty result set from a Compass Lucene query with Dates

I am using Compass to make queries on data inside in memory data structure. It works fine for searching String and enum values, now I want to search dates. Search criteria are annotated by @SearchRestriction annotation. Example about someDate: …
mico
  • 12,730
  • 12
  • 59
  • 99
4
votes
2 answers

ignore diacritics when searching

I'm using Compass/Lucene to search and index my database. I want diacritics and character case to be ignore when I search, such that the query "foo" would match both "Fóo" and "foo" and a query for "fóó" would match "fóo" and "fOO". Based on what…
Dónal
  • 185,044
  • 174
  • 569
  • 824
3
votes
3 answers

Where is the default path to the apache lucene index file with grails searchable plugin?

I'm using in my grails 1.3.7 project the searchable plugin. My project was running well until my macbooks harddrive was full and osx threw an message about memory problems and that it'll delete some files (tmp and so on) (after that i deleted some…
whitenexx
  • 1,350
  • 2
  • 25
  • 53
3
votes
2 answers

How do I store the lucene index in a database?

This is my sample code: MysqlDataSource dataSource = new MysqlDataSource(); dataSource.setUser("root"); dataSource.setPassword("ncl"); dataSource.setDatabaseName("userdb"); dataSource.setEmulateLocators(true); //This is important because we are…
devesh
3
votes
1 answer

How to restrict search to component's field value with grails searchable plugin

Using grails searchable plugin, I would like to search for all products within a specific category using a query builder like: Products.search { must(queryString(params.q)) must(term('??????','Food')) } Using 'category.name' returns: Failed…
Micor
  • 1,502
  • 4
  • 20
  • 39
3
votes
0 answers

SpringSyncTransaction with Grails Searchable

I'm trying to use the SpringSyncTransaction with the Grails Searchable plugin but can't set the transactionManager on the LocalCompassBean as suggested. It appears that Searchable does not use the LocalCompassBean. This problem stems from wanting…
Ajay
  • 763
  • 5
  • 17
3
votes
1 answer

Searchable index gets locked on manual update (LockObtainFailedException)

We have a Grails project that runs behind a load balancer. There are three instances of the Grails application running on the server (using separate Tomcat instances). Each instance has its own searchable index. Because the indexes are separate,…
2
votes
0 answers

How to Implement Compass Search Engine with Spring Framework?

I am new to Spring Framework. I want to implement Compass Search Engine in Spring Framework. Please help me to understand things. Thanks.
Sameek Mishra
  • 9,174
  • 31
  • 92
  • 118
1
2 3 4 5 6