Re: How to achieve real-time index search in lucene

2016-01-06 Thread Michael McCandless
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

Re: How to achieve real-time index search in lucene

2016-01-06 Thread Alok Bhandari
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

java.lang.OutOfMemoryError: WildcardQuery

2016-01-06 Thread Pee Jay
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

[spatial] Indexing polygons?

2016-01-06 Thread Robert Nix
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