You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Francesco Valentini <fr...@altiliagroup.com> on 2013/03/06 15:37:06 UTC
Query parsing issue
Hi,
I’ve written my own analyzer to index and query a set of documents. At indexing time everything goes well but
now I have a problem in query phase.
I need to pass the whole query string to my analyzer before the edismax query parser begins its tasks.
In other words I have to preprocess the raw query string.
The phrase querying does not fit my needs because I don’t have to match the entire set of terms/tokens.
How can I achieve this?
Thank you in advance.
Francesco
R: Query parsing issue
Posted by Francesco Valentini <fr...@altiliagroup.com>.
Thank you very much,
I've tried both the way that you have suggested to me. Then I've choosen to
re-write the parse method by extending ExtendedDismaxQParser class.
Francesco.
-----Messaggio originale-----
Da: Tomás Fernández Löbbe [mailto:tomasflobbe@gmail.com]
Inviato: mercoledì 6 marzo 2013 19:39
A: solr-user@lucene.apache.org
Oggetto: Re: Query parsing issue
It should be easy to extend ExtendedDismaxQParser and do your pre-processing
in the parse() method before calling edismax's parse. Or maybe you could
change the way EDismax is splitting the input query into clauses by
extending the "splitIntoClauses" method?
Tomás
On Wed, Mar 6, 2013 at 6:37 AM, Francesco Valentini <
francesco.valentini@altiliagroup.com> wrote:
> Hi,
>
>
>
> Ive written my own analyzer to index and query a set of documents. At
> indexing time everything goes well but
>
> now I have a problem in query phase.
>
> I need to pass the whole query string to my analyzer before the
> edismax query parser begins its tasks.
>
> In other words I have to preprocess the raw query string.
>
> The phrase querying does not fit my needs because I dont have to
> match the entire set of terms/tokens.
>
> How can I achieve this?
>
>
>
> Thank you in advance.
>
>
>
>
>
> Francesco
>
>
>
>
Re: Query parsing issue
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
It should be easy to extend ExtendedDismaxQParser and do your
pre-processing in the parse() method before calling edismax's parse. Or
maybe you could change the way EDismax is splitting the input query into
clauses by extending the "splitIntoClauses" method?
Tomás
On Wed, Mar 6, 2013 at 6:37 AM, Francesco Valentini <
francesco.valentini@altiliagroup.com> wrote:
> Hi,
>
>
>
> I’ve written my own analyzer to index and query a set of documents. At
> indexing time everything goes well but
>
> now I have a problem in query phase.
>
> I need to pass the whole query string to my analyzer before the edismax
> query parser begins its tasks.
>
> In other words I have to preprocess the raw query string.
>
> The phrase querying does not fit my needs because I don’t have to match
> the entire set of terms/tokens.
>
> How can I achieve this?
>
>
>
> Thank you in advance.
>
>
>
>
>
> Francesco
>
>
>
>