Lance Java wrote
>
> Hi, I'm trying to keep this a lucene only project rather than bring in
> solr
> which, as I understand, needs to run in a separate web container. I'd like
> to use a single webapp for my project as I'm unsure of the implications of
> hosting such a project on the cloud.
>
B
will the solution provided by Charlie Hubbard do the work?
I am not sure I understand the "writer.addIndexes( ram );" part.
What if there are inconsistent data between FS and RAM? What if in a
multi-threading environment one thread try to synchronize the two while the
other thread keeps writi
The two directories won't be synchronized. As the RAMDirectory JavaDocs
say:
Note that the resulting RAMDirectory instance is fully independent from the
original Directory (it is a complete copy). Any subsequent changes to the
originalDirectory will not be visible in the RAMDirectory instance.
S
Hi,
I was trying to use QueryParser for some chinese, but encountered the
following issues:
(1) org.apache.lucene.queryParser.ParseException: Cannot parse '大众UP!':
Encountered "" at line 1, column 5.
the error seems to be the Chinese exclamation mark.
(2) org.apache.lucene.queryParser.ParseExce
what about my code as follow:
FSDirectory indexDir = new NIOFSDirectory(new File("c:/index_folder"));
Directory ramDir = new RAMDirectory(indexDir);
IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_35,
new StandardAnalyzer(Version.LUCENE_35));
IndexWriter iw = new IndexWriter(ramDir, i
Hi Lance.
LSP has the concept of a "SpatialStrategy" which encompasses all the
algorithms and what-not to index and query, filter, and sort shapes. The
TwoDoublesStrategy aims to basically work like Solr's LatLonType, however it
isn't completely implemented as you found out -- it doesn't do circl
You can always index into RAMDirectory for speed then synchronize those
changes to the disk by adding the RAMDirectory to a FSDirectory at some
point. Here is a simple example of how to do that:
public void save( RAMDirectory ram, File dir ) {
FSDirectory fs = FSDirectory.open( dir );
On Sun, Jan 1, 2012 at 6:18 AM, Lance Java wrote:
> But I'm a bit worried about this solution since Yonik has pointed out that
> the tier based approach is broken. Yonik, any more info on why this is
> broken? Perhaps a bounding box that works is better than a circle that
> doesn't ;)
Haven't use
Hi, I'm trying to keep this a lucene only project rather than bring in solr
which, as I understand, needs to run in a separate web container. I'd like
to use a single webapp for my project as I'm unsure of the implications of
hosting such a project on the cloud.
I downloaded lucene-spatial-playgro