jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Perez <mper...@gmail.com>
Subject Re: Fwd: Score and searching
Date Thu, 27 Oct 2005 12:18:50 GMT
Thanks Marcel, I didn't saw that point of the spec.

Best regards,

Martin

On 10/27/05, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
>
> Hi Martin,
>
> I'd say both are correct and feasible. personally I prefer the second
> approach because I don't have to use two iterators simultaneously.
>
> the jcr:path property *must* always be present in a result row, see
> section 8.5.2.2 <http://8.5.2.2> of the spec. so, you can be sure that it
> is always there.
>
> regards
> marcel
>
> Martin Perez wrote:
> > Hi. I'm a little confused about how to obtain score values when
> performing
> > search operations.
> >
> > Which one will be the correct process?
> >
> > 1 - Perform a search operation
> > 2 - Go through QueryResult RowIterator and NodeIterator simultaneously.
> With
> > NodeIterator you get the node and with RowIterator you get the score.
> I'm
> > assuming that NodeIterator and RowIterator return data in the same
> order.
> >
> > or
> >
> > 1 - Perform a search operation
> > 2 - Use only QueryResult RowIterator. You get the score and path
> property,
> > and with the path property you obtain the Item through the session
> object.
> > But as a drawback you have to do a cast to javax.jcr.Node and you must
> > assume that a path property should be present.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message