Re: StandardQueryParser with date/time fields stored as longs

2015-02-11 Thread Jon Stewart
at 4:21 AM, Jon Stewart j...@lightboxtechnologies.com wrote: Hello, I've done a lot of googling, but haven't stumbled upon the magic answer: how does one use StandardQueryParser with numeric fields representing timestamps, to allow for range queries? When indexing, my timestamp fields are ISO

Re: StandardQueryParser with date/time fields stored as longs

2015-02-11 Thread Jon Stewart
as an exercise for the reader. Good luck! -- Ian. On Wed, Feb 11, 2015 at 2:20 PM, Jon Stewart j...@lightboxtechnologies.com wrote: Eek. So is there a parsing component somewhere that gets handed a field name and query components (e.g., created, 2010-01-01, 2014-12-31), which I can derive

StandardQueryParser with date/time fields stored as longs

2015-02-10 Thread Jon Stewart
Hello, I've done a lot of googling, but haven't stumbled upon the magic answer: how does one use StandardQueryParser with numeric fields representing timestamps, to allow for range queries? When indexing, my timestamp fields are ISO 8601 strings. I'm parsing them and then storing the

Re: improve indexing speed with nomergepolicy

2014-08-07 Thread Jon Stewart
- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA

Re: search performance

2014-06-03 Thread Jon Stewart
-h...@lucene.apache.org -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h

Faceting and Query-time Joins

2014-02-10 Thread Jon Stewart
about last night is that it wouldn't seem to be too hard to do the faceting for this case by using update-able NumericDocValue on a dummy parent object, since that shouldn't require re-indexing. TIA, Jon -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA

Re: Faceting and Query-time Joins

2014-02-10 Thread Jon Stewart
://blog.mikemccandless.com On Mon, Feb 10, 2014 at 9:05 AM, Jon Stewart j...@lightboxtechnologies.com wrote: Hello, tl;dr: I'd like to know how to do faceting over the result set of a query-time join (JoinUtils). If it's not currently supported by Lucene, I'd appreciate some pointers about what needs to be done

Re: PostingsHighlighter/PassageFormatter has zero matches for some results

2013-10-15 Thread Jon Stewart
:) On Mon, Oct 14, 2013 at 9:32 PM, Jon Stewart j...@lightboxtechnologies.com wrote: I upgraded to 4.5. Same results, unfortunately. Most docs in the result set will have a Passage where numMatches() 0, but some do not. In these cases, the Passage array's length is greater than zero. Jon

Re: PostingsHighlighter/PassageFormatter has zero matches for some results

2013-10-15 Thread Jon Stewart
. - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA

PostingsHighlighter/PassageFormatter has zero matches for some results

2013-10-14 Thread Jon Stewart
in the array will have matches. I've seen this on a simple one-word query, where the word clearly exists in the Document's text for the field (and the Document is included in the TopDocs result set). Any ideas? Thanks, Jon -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com

Re: PostingsHighlighter/PassageFormatter has zero matches for some results

2013-10-14 Thread Jon Stewart
the latest release? There are some bugs fixed... On Mon, Oct 14, 2013 at 2:11 PM, Jon Stewart j...@lightboxtechnologies.com wrote: Hello, I've observed that when using PostingsHighlighter in Lucene 4.4 that some of the responsive documents in TopDocs will have zero matches in the associated array

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-19 Thread Jon Stewart
- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-19 Thread Jon Stewart
://blog.mikemccandless.com On Mon, Aug 19, 2013 at 1:07 PM, Jon Stewart j...@lightboxtechnologies.com wrote: Iterating over term matches is a recent need for me, too (experimenting with ranking matches/passages independently, across documents). I'm using the new PostingsHighlighter and giving

testing whether a field has terms before adding document to Index

2013-02-06 Thread Jon Stewart
); MyIndexWriter.add(doc); } Is it possible to do this? I don't mind jumping through some hoops. Thanks! Jon -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA - To unsubscribe, e-mail: java-user

Re: Document term vectors in Lucene 4

2013-01-18 Thread Jon Stewart
there won't be many segments. But from my reading of the migration guide you shouldn't need to use the Composite reader. Hope this helps - we are getting outside my area of expertise so don't trust anything I say. -- Ian. On Thu, Jan 17, 2013 at 3:11 PM, Jon Stewart j

Re: Document term vectors in Lucene 4

2013-01-17 Thread Jon Stewart
, but why are you using SlowCompositeReaderWrapper rather than just IndexReader rdr = DirectoryReader.open(dir)? I get the same results either way, -- Ian. On Thu, Jan 17, 2013 at 5:52 AM, Jon Stewart j...@lightboxtechnologies.com wrote: Hello, I cannot extract document term vectors

Re: Document term vectors in Lucene 4

2013-01-17 Thread Jon Stewart
IOException, InterruptedException, CorruptIndexException { final String path = args[0]; createIndex(path); readIndex(path); } } -- Jon Stewart, Principal (646) 719-0317 | j...@lightboxtechnologies.com | Arlington, VA

Re: Document term vectors in Lucene 4

2013-01-17 Thread Jon Stewart
doc.add(...) statements. -- Ian. On Thu, Jan 17, 2013 at 2:49 PM, Jon Stewart j...@lightboxtechnologies.com wrote: On Thu, Jan 17, 2013 at 9:08 AM, Robert Muir rcm...@gmail.com wrote: Which statistics in particular (which methods)? I'd like to know the frequency of each term in each

Document term vectors in Lucene 4

2013-01-16 Thread Jon Stewart
; } System.out.println(doc + i + had + numTerms + terms); } else { System.err.println(null term vector on doc + i); } } On every doc, the Terms object I get back from getTermVector(i, body) is null. Jon -- Jon Stewart, Principal (646) 719-0317 | j