Re: highlighter by using term offsets

2011-11-24 Thread Ian Lea
That is neither the smallest possible code to show the problem, nor self-contained. My guess would be that "reader" in your offending line is the culprit. It isn't shown anywhere else in your code so, from the evidence you've provided, it is reasonable to think it might be null. > hits[i].doc re

Re: highlighter by using term offsets

2011-11-24 Thread starz10de
Hi, here is the full part of the code: public static void doPagingSearch(BufferedReader in, Searcher searcher, Query query, int hitsPerPage, boolean raw, boolean interactive) throws IOException, ParseException, InvalidTokenOffsetsException {

Re: highlighter by using term offsets

2011-11-24 Thread Ian Lea
OK, so you've ruled out one possible cause. Progress! But if you're getting NPE on line 274 and line 274 reads TermPositionVector tpv = (TermPositionVector)reader.getTermFreqVector(hits[i].doc,"contents"); then something is null where it shouldn't be. Rule out everything you can and what is le

Re: highlighter by using term offsets

2011-11-24 Thread starz10de
Hi, no hits are not null, I can print all retrieved docuemtns without problem. -- View this message in context: http://lucene.472066.n3.nabble.com/highlighter-by-using-term-offsets-tp3527712p3533380.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

Re: Spell check on a subset of an index ( 'namespace' aware spell checker)

2011-11-24 Thread E. van Chastelet
Thank you Mike, I have thought about that solution myself, but the problem with this approach is that the terms still need to be modified before building the dictionary that is feed to the spell checker. Also, the similarity scores which are used to determine the spell suggestions are affected

Taxonomy indexer debug

2011-11-24 Thread Mihai Caraman
Hello, I'm having an issue with using NRT and Tax. After a couple of days of running continuously , the taxonomyreader doesn't return results anymore (but taxindex has them). How can i debug this?! does taxonomy index have a logoutput like indexwriter has? will that be enough or relevant? Current