Why not just always use IndexWriter.updateDocument, passing a unique
identifier for your document?
This way IW will add it if it doesn't exist, else replace it if it did.
Mike McCandless
http://blog.mikemccandless.com
On Tue, Jan 5, 2016 at 10:35 PM, Alok Bhandari
wrote:
> Is any one aware of
Hello Michael ,
thanks for your reply. But I am not getting unique identifier , do we have a
way to specify a unique identifier
in lucene. As per my knowledge solr have it but lucene does not have a
concept of unique-identifier.
If you know about it please can you share a snippet , it would be
Hello,
We have recently upgraded from Lucene 3.6 to Lucene 4.7.2, and are facing
issues when we are having "*java.lang.OutOfMemoryError: GC overhead limit
exceeded*" while creating the object of WildCardQuery:
*Code:*
Query query = new WildcardQuery(new Term("id", "someTerm"));
*StackTrace: *j
Hi,
Is there an example in the lucene-solr source to show how to index polygons
and how to search with and for indexed polys? I'm looking in
lucene/spatial/src/test/ and I see an example of a point and it seems
obvious:
doc.add(new StoredField(strategy.getFieldName, pt.getX + " " + pt.getY))
But