I am using grails searchable plugin. It creates index files on a given location. Is there any way in searchable plugin to create Lucene index in a database?
Asked
Active
Viewed 158 times
3 Answers
2
Generally, no.
You can probably attempt to implement your own format but this would require a lot of effort.

mindas
- 26,463
- 15
- 97
- 154
-
If there are scale-able environments(multiple environments for load balancing) than how lucene will work ? – Umair Saleem May 14 '13 at 05:16
-
1I am not entirely sure what you have meant by your question, but I'd suggest you to read [this article](http://searchhub.org/2009/09/02/scaling-lucene-and-solr/) which covers Lucene/Solr scalability topic in great detail. – mindas May 14 '13 at 09:04
1
I am no expert in Lucene, but I know that it is optimized to offer fast search over the filesystem. So it would be theoretically possible to build a Lucene index over the database, but the main feature of lucene (being a VERY fast search engine) would be lost.

Enduriel
- 111
- 3
-
1+1 Only local file-system based directories offer acceptable performance. – jpountz May 14 '13 at 10:24
1
As a point of interest, Compass supported storage of a Lucene index in a database, using a JdbcDirectory. This was, as far as I can figure, just a bad idea.
Compass, by the way, is now defunct, having been replaced by ElasticSearch.

femtoRgon
- 32,893
- 7
- 60
- 87