[Zope] Sorting TextIndexNG results...
Casey Duncan
casey@zope.com
Wed, 2 Apr 2003 09:54:40 -0500
On Wednesday 02 April 2003 08:33 am, Andreas Jung wrote:
> --On Mittwoch, 2. April 2003 15:27 Uhr +0200 Thierry FLORAC=20
> <thierry.florac@onf.fr> wrote:
>=20
> >
> > Hi,
> >
> > I use TextIndexNG with french stemmers to index my documents in
> > "full-text" mode.
> > My questions are :
> > - how are TextIndexNG results sorted ?
>=20
> Sorting is up to the application.
>=20
> > - how are results stored when a TextIndexNG is mixed with other inde=
xes
> > (fieldindexes,...) in a single query ?
>=20
> same as above (except you specify sort_on on the ZCatalog level)
>=20
> > - is there a "rank" or "score" value available in TextIndexNG query
> > results to be able to sort results manually ?
>=20
> TextIndexNG does no ranking, ZCTextIndexNG does
>=20
> > - does ZCTextIndex solves these problems ??
>=20
> Casey?
>=20
> -aj
ZCTextIndex sorts in reverse order by relevance score (highest first). I =
think=20
you can also sort by arbitrary indexes if that isn't what you want. It of=
ten=20
is (for me at least).
Classic TextIndex works this way too, but its scoring algorithm is *much*=
less=20
sophisticated.
hth,
-Casey