Problem about method Query#query()

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem about method Query#query()

Game Now
Hi all,

I pass some strings to org.apache.nutch.searcher.Query#parse() method,
but I got difference result like below:

parameter string: area:XX, returnedQuery.toString() is: area:XX.
parameter string: subarea:YY, returnedQuery.toString() is: subarea YY.
(Note: the ':' disappearred)
parameter string: publishdate:ZZ, returnedQuery.toString() is:
publishdate ZZ. (Note: the ':' disapperarred too)

So I can't query any content in field subarea & publishdate.

Why it is caused? Is it a bug or something I unknowed cuase it?

Thanks all.
Reply | Threaded
Open this post in threaded view
|

Re: Problem about method Query#query()

Stefan Groschupf-2
Hi,
Do you have any query filter installed?
Stefan

Am 10.11.2005 um 09:37 schrieb Game Now:

> Hi all,
>
> I pass some strings to org.apache.nutch.searcher.Query#parse() method,
> but I got difference result like below:
>
> parameter string: area:XX, returnedQuery.toString() is: area:XX.
> parameter string: subarea:YY, returnedQuery.toString() is: subarea YY.
> (Note: the ':' disappearred)
> parameter string: publishdate:ZZ, returnedQuery.toString() is:
> publishdate ZZ. (Note: the ':' disapperarred too)
>
> So I can't query any content in field subarea & publishdate.
>
> Why it is caused? Is it a bug or something I unknowed cuase it?
>
> Thanks all.
>

Reply | Threaded
Open this post in threaded view
|

Re: Problem about method Query#query()

Game Now
Oh yes, I do not create any query filter for subarea and publishdate.

Thank you, Stefan!

On 11/10/05, Stefan Groschupf <[hidden email]> wrote:

> Hi,
> Do you have any query filter installed?
> Stefan
>
> Am 10.11.2005 um 09:37 schrieb Game Now:
>
> > Hi all,
> >
> > I pass some strings to org.apache.nutch.searcher.Query#parse() method,
> > but I got difference result like below:
> >
> > parameter string: area:XX, returnedQuery.toString() is: area:XX.
> > parameter string: subarea:YY, returnedQuery.toString() is: subarea YY.
> > (Note: the ':' disappearred)
> > parameter string: publishdate:ZZ, returnedQuery.toString() is:
> > publishdate ZZ. (Note: the ':' disapperarred too)
> >
> > So I can't query any content in field subarea & publishdate.
> >
> > Why it is caused? Is it a bug or something I unknowed cuase it?
> >
> > Thanks all.
> >
>
>