I believe it is not possible. But you can easily split this in two query statements.

First one:

text:(“vacuna” AND “esteve news”)

and the second:

(text:(“vacuna”) OR text:(“esteve news”)) AND -text:(“vacuna” AND “esteve news”)

The minus "-" excludes all entries of the first statemant. This is important to ensure that you don't get entries twice. So the first will contain all entries with both words, and the second query all left entries that contain exactly ONE of those words.

I hope this helps.


Am 16.10.2013 15:49, schrieb Silvia Suárez:
Dear all,

I am using solrj as client for indexing and searching documents on the solr
server

My question:

How to retrieve the query for a boolean keyword?

For example:

I have this query:

text:(“vacuna” AND “esteve news”) OR text:(“vacuna”) OR text:(“esteve news”)

And searching in:

text--> Esteve news: Obtener una vacuna para frenar el...

Solr returns:

<em>Esteve news</em>: obtener una <em>vacuna</em> para frenar el ...

It is ok.

My question is:

Can I know with solr that results: <em>Esteve news</em> <em>vacuna</em>
are provided by the query with the AND operator?

is it posible to retrieve with solrj?

Thanks a lot in advance,

Sil,



*
*
*Tecnologías y SaaS para el análisis de marcas comerciales.*


Nota:
Usted ha recibido este mensaje al estar en la libreta de direcciones del
remitente, en los archivos de la empresa o mediante el sistema de
“responder” al ser usted la persona que contactó por este medio con el
remitente. En caso de no querer recibir ningún email mas del remitente o de
cualquier miembro de la organización a la que pertenece, por favor,
responda a este email solicitando la baja de su dirección en nuestros
archivos.

Advertencia legal:
Este mensaje y, en su caso, los ficheros anexos son confidenciales,
especialmente en lo que respecta a los datos personales, y se dirigen
exclusivamente al destinatario referenciado. Si usted no lo es y lo ha
recibido por error o tiene conocimiento del mismo por cualquier motivo, le
rogamos que nos lo comunique por este medio y proceda a destruirlo o
borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar,
archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo
ello bajo pena de incurrir en responsabilidades legales.


Reply via email to