You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Paul Libbrecht <pa...@activemath.org> on 2005/06/19 01:39:10 UTC

Lucene scoring bounds ??

Hi,

I read the lucene-book about scoring and read a bit of the javadoc but 
I can't seem to find somewhere expectations of the bouds for the score 
value.
I had believe the score would end up between 0 and 1 but I seem to keep 
having values under 0.2. It may be due to my special requests but... 
how can I be sure of this ?

thanks

paul


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


Strange Error Problem

Posted by Youngho Cho <yo...@nannet.co.kr>.
Hello,

I develop our system using lucene 1.4.3 with RemoteSearchable.
Currently I got the following error message.
But I don't konw why it happend and how to fix it.

Could you explain what situation give the following error  ???

Thanks.

Youngho

java.io.IOException: read past EOF
        at org.apache.lucene.store.InputStream.refill(InputStream.java:154)
        at org.apache.lucene.store.InputStream.readByte(InputStream.java:43)
        at org.apache.lucene.store.InputStream.readBytes(InputStream.java:57)
        at org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:356)
        at org.apache.lucene.index.MultiReader.norms(MultiReader.java:159)
        at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:64)
        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:165)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85)
        at org.apache.lucene.search.RemoteSearchable.search(RemoteSearchable.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:534)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at com.nannet.fulcrum.lucene.util.RefinedRemoteSearchable_Stub.search(Unknown Source)
        at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:251)

Re: Lucene scoring bounds ??

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jun 18, 2005, at 7:39 PM, Paul Libbrecht wrote:
> I read the lucene-book about scoring and read a bit of the javadoc  
> but I can't seem to find somewhere expectations of the bouds for  
> the score value.
> I had believe the score would end up between 0 and 1 but I seem to  
> keep having values under 0.2. It may be due to my special requests  
> but... how can I be sure of this ?

Hits from all non-HitCollector searches are "normalized".  Normalized  
in this sense means that if the top-scoring document scores higher  
than 1.0 it is normalized to 1.0 and that ratio is used to normalize  
all scores.  However, if the top-scoring document is under 1.0, the  
scores are left as-is.

Searches using a HitCollector are always left as-is.

Have a look at IndexSearcher.explain() results for document/query  
combinations to see what is causing the lower than expected scores.

     Erik


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