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 John Blythe <jo...@curvolabs.com> on 2015/05/26 21:17:32 UTC
No results for MoreLikeThis
hi all,
running a query like this, but am getting no results from the mlt handler:
http://localhost:8983/solr/parts/select?q=mfgname2%3A+Acme
Corp+descript2%3A+(SCREW+3.5X50MM)&start=0&rows=1&fl=*%2C+score&wt=json&indent=true&mlt=true&mlt.fl=*&mlt.mintf=1&mlt.mindf=1&mlt.minwl=1
been googling around without any luck as of yet. i have the requestHandler
added to solrconfig.xml:
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
and confirm it is loaded in the Plugins/Stats area of the solr admin
interface.
i've tried adding minimum word length, term frequency, etc. per a post or
two i ran across where people had similar issues resolved by doing so, but
it didn't help any.
i'm not getting any errors, what puzzle piece am i missing in my
configuration or query building?
thanks!
- john
Re: No results for MoreLikeThis
Posted by Upayavira <uv...@odoko.co.uk>.
If the source document is in your index (i.e. not passed in via
stream.body) then the fields used will either need to be stored or have
term vectors enabled. The latter is more performant.
Upayavira
On Tue, May 26, 2015, at 09:24 PM, John Blythe wrote:
> Just checked my schema.xml and think that the issue is resulting from the
> "stored" property being set false on descript2 and true on descript.
>
>
> --
> *John Blythe*
> Product Manager & Lead Developer
>
> 251.605.3071 | john@curvolabs.com
> www.curvolabs.com
>
> 58 Adams Ave
> Evansville, IN 47713
>
> On Tue, May 26, 2015 at 4:22 PM, John Blythe <jo...@curvolabs.com> wrote:
>
> > Good call.
> >
> > I'd previously attempted to use one of my fields, however, and it didn't
> > work. I then thought maybe broadening it to list anything could help. I'd
> > tried using the interestingTerms parameter as well.
> >
> > Just for the sake of double checking before replying to your message,
> > though, I changed fl once more to the field I was hoping to find items
> > related to. I had a typo, though, and it worked. Instead of 'descript2' I
> > used 'descript' and voila. 'descript' is the indexed field, descript2 is a
> > copyField that uses a different analyzer (the one I'm actually using for
> > querying). I guess it only takes non-copy (and maybe non-dynamic?) fields
> > into account?
> >
> > Thanks for any more information on that field specific approach/issue!
> >
> > --
> > *John Blythe*
> > Product Manager & Lead Developer
> >
> > 251.605.3071 | john@curvolabs.com
> > www.curvolabs.com
> >
> > 58 Adams Ave
> > Evansville, IN 47713
> >
> > On Tue, May 26, 2015 at 4:16 PM, Upayavira <uv...@odoko.co.uk> wrote:
> >
> >> I doubt mlt.fl=* will work. Provide it with specific field names that
> >> should be used for the comparison.
> >>
> >> Upayavira
> >>
> >> On Tue, May 26, 2015, at 08:17 PM, John Blythe wrote:
> >> > hi all,
> >> >
> >> > running a query like this, but am getting no results from the mlt
> >> > handler:
> >> > http://localhost:8983/solr/parts/select?q=mfgname2%3A+Acme
> >> >
> >> Corp+descript2%3A+(SCREW+3.5X50MM)&start=0&rows=1&fl=*%2C+score&wt=json&indent=true&mlt=true&mlt.fl=*&mlt.mintf=1&mlt.mindf=1&mlt.minwl=1
> >> >
> >> > been googling around without any luck as of yet. i have the
> >> > requestHandler
> >> > added to solrconfig.xml:
> >> > <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
> >> >
> >> > and confirm it is loaded in the Plugins/Stats area of the solr admin
> >> > interface.
> >> >
> >> > i've tried adding minimum word length, term frequency, etc. per a post
> >> or
> >> > two i ran across where people had similar issues resolved by doing so,
> >> > but
> >> > it didn't help any.
> >> >
> >> > i'm not getting any errors, what puzzle piece am i missing in my
> >> > configuration or query building?
> >> >
> >> > thanks!
> >> >
> >> > - john
> >>
> >
> >
Re: No results for MoreLikeThis
Posted by John Blythe <jo...@curvolabs.com>.
Just checked my schema.xml and think that the issue is resulting from the
"stored" property being set false on descript2 and true on descript.
--
*John Blythe*
Product Manager & Lead Developer
251.605.3071 | john@curvolabs.com
www.curvolabs.com
58 Adams Ave
Evansville, IN 47713
On Tue, May 26, 2015 at 4:22 PM, John Blythe <jo...@curvolabs.com> wrote:
> Good call.
>
> I'd previously attempted to use one of my fields, however, and it didn't
> work. I then thought maybe broadening it to list anything could help. I'd
> tried using the interestingTerms parameter as well.
>
> Just for the sake of double checking before replying to your message,
> though, I changed fl once more to the field I was hoping to find items
> related to. I had a typo, though, and it worked. Instead of 'descript2' I
> used 'descript' and voila. 'descript' is the indexed field, descript2 is a
> copyField that uses a different analyzer (the one I'm actually using for
> querying). I guess it only takes non-copy (and maybe non-dynamic?) fields
> into account?
>
> Thanks for any more information on that field specific approach/issue!
>
> --
> *John Blythe*
> Product Manager & Lead Developer
>
> 251.605.3071 | john@curvolabs.com
> www.curvolabs.com
>
> 58 Adams Ave
> Evansville, IN 47713
>
> On Tue, May 26, 2015 at 4:16 PM, Upayavira <uv...@odoko.co.uk> wrote:
>
>> I doubt mlt.fl=* will work. Provide it with specific field names that
>> should be used for the comparison.
>>
>> Upayavira
>>
>> On Tue, May 26, 2015, at 08:17 PM, John Blythe wrote:
>> > hi all,
>> >
>> > running a query like this, but am getting no results from the mlt
>> > handler:
>> > http://localhost:8983/solr/parts/select?q=mfgname2%3A+Acme
>> >
>> Corp+descript2%3A+(SCREW+3.5X50MM)&start=0&rows=1&fl=*%2C+score&wt=json&indent=true&mlt=true&mlt.fl=*&mlt.mintf=1&mlt.mindf=1&mlt.minwl=1
>> >
>> > been googling around without any luck as of yet. i have the
>> > requestHandler
>> > added to solrconfig.xml:
>> > <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
>> >
>> > and confirm it is loaded in the Plugins/Stats area of the solr admin
>> > interface.
>> >
>> > i've tried adding minimum word length, term frequency, etc. per a post
>> or
>> > two i ran across where people had similar issues resolved by doing so,
>> > but
>> > it didn't help any.
>> >
>> > i'm not getting any errors, what puzzle piece am i missing in my
>> > configuration or query building?
>> >
>> > thanks!
>> >
>> > - john
>>
>
>
Re: No results for MoreLikeThis
Posted by John Blythe <jo...@curvolabs.com>.
Good call.
I'd previously attempted to use one of my fields, however, and it didn't
work. I then thought maybe broadening it to list anything could help. I'd
tried using the interestingTerms parameter as well.
Just for the sake of double checking before replying to your message,
though, I changed fl once more to the field I was hoping to find items
related to. I had a typo, though, and it worked. Instead of 'descript2' I
used 'descript' and voila. 'descript' is the indexed field, descript2 is a
copyField that uses a different analyzer (the one I'm actually using for
querying). I guess it only takes non-copy (and maybe non-dynamic?) fields
into account?
Thanks for any more information on that field specific approach/issue!
--
*John Blythe*
Product Manager & Lead Developer
251.605.3071 | john@curvolabs.com
www.curvolabs.com
58 Adams Ave
Evansville, IN 47713
On Tue, May 26, 2015 at 4:16 PM, Upayavira <uv...@odoko.co.uk> wrote:
> I doubt mlt.fl=* will work. Provide it with specific field names that
> should be used for the comparison.
>
> Upayavira
>
> On Tue, May 26, 2015, at 08:17 PM, John Blythe wrote:
> > hi all,
> >
> > running a query like this, but am getting no results from the mlt
> > handler:
> > http://localhost:8983/solr/parts/select?q=mfgname2%3A+Acme
> >
> Corp+descript2%3A+(SCREW+3.5X50MM)&start=0&rows=1&fl=*%2C+score&wt=json&indent=true&mlt=true&mlt.fl=*&mlt.mintf=1&mlt.mindf=1&mlt.minwl=1
> >
> > been googling around without any luck as of yet. i have the
> > requestHandler
> > added to solrconfig.xml:
> > <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
> >
> > and confirm it is loaded in the Plugins/Stats area of the solr admin
> > interface.
> >
> > i've tried adding minimum word length, term frequency, etc. per a post or
> > two i ran across where people had similar issues resolved by doing so,
> > but
> > it didn't help any.
> >
> > i'm not getting any errors, what puzzle piece am i missing in my
> > configuration or query building?
> >
> > thanks!
> >
> > - john
>
Re: No results for MoreLikeThis
Posted by Upayavira <uv...@odoko.co.uk>.
I doubt mlt.fl=* will work. Provide it with specific field names that
should be used for the comparison.
Upayavira
On Tue, May 26, 2015, at 08:17 PM, John Blythe wrote:
> hi all,
>
> running a query like this, but am getting no results from the mlt
> handler:
> http://localhost:8983/solr/parts/select?q=mfgname2%3A+Acme
> Corp+descript2%3A+(SCREW+3.5X50MM)&start=0&rows=1&fl=*%2C+score&wt=json&indent=true&mlt=true&mlt.fl=*&mlt.mintf=1&mlt.mindf=1&mlt.minwl=1
>
> been googling around without any luck as of yet. i have the
> requestHandler
> added to solrconfig.xml:
> <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
>
> and confirm it is loaded in the Plugins/Stats area of the solr admin
> interface.
>
> i've tried adding minimum word length, term frequency, etc. per a post or
> two i ran across where people had similar issues resolved by doing so,
> but
> it didn't help any.
>
> i'm not getting any errors, what puzzle piece am i missing in my
> configuration or query building?
>
> thanks!
>
> - john