Nope, not seen that one.
Looks like the reference to no such field is in the Java instance data
sense, not the Lucene document sense.
Class versioning issues somewhere?
That method takes a parameter called "prohibited" which is the name of
the field reported in the error. Is the word "prohibited" a reserved
Java word somewhere now? What JVM are you running on - 1.6?
Cheers
Mark
Otis Gospodnetic wrote:
Hi,
I just moved from 1.9.1 to 2.1-dev. One error that seems to happen a lot now
is below. I haven't had the chance to investigate yet (note the time), but I
thought I'd throw (no pun intended) it out there and see if anyone else has
seen this before.
java.lang.NoSuchFieldError: prohibited
at
org.apache.lucene.search.highlight.QueryTermExtractor.getTermsFromBooleanQuery(QueryTermExtractor.java:91)
at
org.apache.lucene.search.highlight.QueryTermExtractor.getTerms(QueryTermExtractor.java:66)
at
org.apache.lucene.search.highlight.QueryTermExtractor.getTerms(QueryTermExtractor.java:59)
at
org.apache.lucene.search.highlight.QueryTermExtractor.getTerms(QueryTermExtractor.java:45)
at
org.apache.lucene.search.highlight.QueryScorer.<init>(QueryScorer.java:48)
The only thing I know so far is that the field I'm passing to the highlighter
is actually empty, so there will be nothing to highlight, but it still
shouldn't bomb. Here is a snippet from my code:
TokenStream tokenStream = ANALYZER.tokenStream(_textFieldName, new
StringReader(text));
highlightText = _highlighter.getBestFragments(tokenStream, text,
_maxNumFragmentsRequired, "...");
...
That "text" variable holds the content of the field, and I just happen to know
it's empty/blank (I currently don't store anything in that Field). I can't test with a
non-empty field right now to check whether that throws QueryTermExtractor off.
Thanks,
Otis
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Send instant messages to your online friends http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]