lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: No Such Element Exception when getting document
Date Sat, 01 Nov 2008 18:05:34 GMT
: I'm on my own and really stuck! The search works but when I click on a
: document I try to open it and this is the error message I receive...
: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:HitIterator]]->next.

I'm not familiar with the php bridge, but i'm fairly certain thta
exception is indicating that there are no matches from your search, so you 
can't ask for the "next" one.  I bet if you asked the HitIterator for it's 
length() or if it hasNext() you would get 0/false

I'm guessing your problem is that when the query parser parses your dodId 
using the StandardAnalyzer, it probably changes it in some what that isn't 
ok given the type of docIds you have.  I bet if you just directly 
constructed a TermQuery things would work much better (but that's pure 
speculation without knowing exactly how your docId field is indexed.

Incidently, if you have any followup questions....

Please Use "java-user@lucene" Not "java-dev@lucene"

Your question is better suited for the java-user@lucene mailing list ...
not the java-dev@lucene list.  java-dev is for discussing development of
the internals of the Lucene Java library ... it is *not* the appropriate
place to ask questions about how to use the Lucene Java library when
developing your own applications.  Please resend your message to
the java-user mailing list, where you are likely to get more/better
responses since that list also has a larger number of subscribers.

http://people.apache.org/~hossman/#java-dev


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message