My bad. Thanks, Erik.
Gin
Best Wishes,
Gintautas Sulskus
On Tue, Nov 1, 2016 at 3:26 PM, Erik Hatcher wrote:
> Now you're asking a dismax parser question. dismax does not support * or
> *:* directly, but rather in q.alt if the query is empty.
>
>Erik
>
> > On Nov 1, 2016, at 11:15, Gintau
Now you're asking a dismax parser question. dismax does not support * or *:*
directly, but rather in q.alt if the query is empty.
Erik
> On Nov 1, 2016, at 11:15, Gintautas Sulskus
> wrote:
>
> I store date as Long:
>
>
> positionIncrementGap="0"/>
>
> Eric, at first glance it seems
I store date as Long:
Eric, at first glance it seems that your given advice to separate nested
parsers worked.
I can see the query in the logs and it returns the expected data.
Thanks!
Using the same opportunity:
How do I set $term to match everything in qq={!dismax qf=‘….’ v=$term},
e.g. lik
What’s the field and type definition of submit_date? Could that be the issue?
Also, one thing you could do is separate the nested parsers like this:
q={!boost b=… v=$qq}
qq={!dismax qf=‘….’ v=$term}
Relying on `v` to be the string after the closing curly bracket is sometimes
error-pro
31st October 2016 21:19
> > To: solr-user@lucene.apache.org
> > Subject: Re: Getting NullPointerException in an attempt to boost query
> result by date
> >
> > Hi Erik,
> >
> > I have defined the query as SearchHandler:
> >
> >
> >
> >
>
ene.apache.org
> Subject: Re: Getting NullPointerException in an attempt to boost query result
> by date
>
> Hi Erik,
>
> I have defined the query as SearchHandler:
>
>
>
>
> {!boost b=recip(ms(NOW/HOUR, submit_date),3.16e-11,1,1)}
>
Hi Erik,
I have defined the query as SearchHandler:
{!boost b=recip(ms(NOW/HOUR, submit_date),3.16e-11,1,1)}
{!type=dismax qf='title^10 body^5 body^1' v=$term}
The handler is then invoked with the following url:
/solr/core/testSearch?term=apple
The handler works i
how’d you set “$term” - the correct way would be &term=apple on the Solr
request.
> On Oct 31, 2016, at 2:07 PM, Gintautas Sulskus
> wrote:
>
> Hi,
>
> I am trying to construct a timestamp-boosted query comprising two weighted
> fields: "title" and "body":
>
> {!boost b=recip(ms(NOW/HOUR,su
Hi,
I am trying to construct a timestamp-boosted query comprising two weighted
fields: "title" and "body":
{!boost b=recip(ms(NOW/HOUR,submit_date),3.16e-11,1,1)}
{!type=dismax qf='title^10 body^1' v=$term}
$term=apple
I expect the given example query provided above to search fields "title"
and