lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernesto De Santis" <ernesto.desan...@colaborativa.net>
Subject Re: syntax of queries.
Date Sat, 13 Dec 2003 03:38:43 GMT
Thanks Otis, I don´t resolve my problem.

I see the Query sintaxis page, and the FAQ´s search section.
I proof too many alternatives:

body:(imprimir teclado) title:base = 451 hits

body:(imprimir teclado)^5.1 title:base = 248 hits (* under 451)

body:(imprimir teclado^5.1) title:base = 451 hits - first document:
3287.html

body:(imprimir^5.1 teclado) title:base = 451 hits - first document:
1545.html

conclusion:
I think that the boost is only applicable for one word. not to parenthesys,
and not to field.

I wanna make the boost applicable to field.
For me, is more important a hit in title that in body, for example.

In the FAQ´s search secction:

Clause      ::=  [ Modifier ] [ FieldName ':' ] BasicClause  [ Boost ]
BasicClause ::= ( Term | Phrase | | PrefixQuery '(' Query ')'

then, in my example BasicClause=(imprimir teclado) and Boost ^5.1.
but not work.

Regards, Ernesto.

----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>; "Ernesto De
Santis" <edesantis@silex-it.com>
Sent: Friday, December 12, 2003 7:18 PM
Subject: Re: syntax of queries.


> Maybe it's the spaces after title:?
> Try title:importar ... instead.
>
> Maybe it's the spaces before ^5.0?
> Try title:importar^5 instead
>
> You shouldn't need the parentheses in this case either, I believe.
>
> See Query Synax page on Lucene's site.
>
> Otis
>
>
> --- Ernesto De Santis <ernesto.desantis@colaborativa.net> wrote:
> > Hello
> >
> > I not undertanding the syntax of queries.
> > I search with this string:
> >
> > title: (importar) ^5.0 OR title: (arquivos)
> >
> > return 6 hits.
> >
> > and with this:
> >
> > title: (arquivos) OR title: (importar) ^5.0
> >
> > 27 hits.
> >
> > why?
> > in the first, I think that work like AND, but, why? :-(
> >
> > Regards, Ernesto.
> >
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
>


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


Mime
View raw message