[ 
https://issues.apache.org/jira/browse/SOLR-7143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14392608#comment-14392608
 ] 

Jens Wille edited comment on SOLR-7143 at 4/2/15 12:16 PM:
-----------------------------------------------------------

First of all, thanks to Vitaliy for providing patches and to Anshum for picking 
up this issue.

Now I'm wondering what needs to happen to move this forward. I'm new here and 
don't really know what's expected of me. I have verified that the latest patch 
works for this particular issue and I, too, would like to see the query parser 
functionality brought on par with the handler functionality (parameters and 
defaults, including an -{{mlt.match.include}}-+"exclude current document from 
results"+ equivalent).

However, there's still a problem with the current approach (multiple {{qf}} 
parameters: yes, comma-separated list: no): Only the latter would work properly 
with parameter dereferencing:

{code}
curl 
'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=$mlt.fl%7DMA147LL/A&mlt.fl=name,features'
{code}

Sets {{qf=name,features}}, which is not split into {{name}} and {{features}} 
with the latest patch.

{code}
curl 
'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=$mlt.fl%7DMA147LL/A&mlt.fl=name&mlt.fl=features'
{code}

Sets {{qf=name}}, ignores subsequent {{mlt.fl}} parameters.

Please let me know if I can do anything.


was (Author: blackwinter):
First of all, thanks to Vitaliy for providing patches and to Anshum for picking 
up this issue.

Now I'm wondering what needs to happen to move this forward. I'm new here and 
don't really know what's expected of me. I have verified that the latest patch 
works for this particular issue and I, too, would like to see the query parser 
functionality brought on par with the handler functionality (parameters and 
defaults, including an {{mlt.match.include}} equivalent).

However, there's still a problem with the current approach (multiple {{qf}} 
parameters: yes, comma-separated list: no): Only the latter would work properly 
with parameter dereferencing:

{code}
curl 
'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=$mlt.fl%7DMA147LL/A&mlt.fl=name,features'
{code}

Sets {{qf=name,features}}, which is not split into {{name}} and {{features}} 
with the latest patch.

{code}
curl 
'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=$mlt.fl%7DMA147LL/A&mlt.fl=name&mlt.fl=features'
{code}

Sets {{qf=name}}, ignores subsequent {{mlt.fl}} parameters.

Please let me know if I can do anything.

> MoreLikeThis Query Parser does not handle multiple field names
> --------------------------------------------------------------
>
>                 Key: SOLR-7143
>                 URL: https://issues.apache.org/jira/browse/SOLR-7143
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 5.0
>            Reporter: Jens Wille
>            Assignee: Anshum Gupta
>         Attachments: SOLR-7143.patch, SOLR-7143.patch
>
>
> The newly introduced MoreLikeThis Query Parser (SOLR-6248) does not return 
> any results when supplied with multiple fields in the {{qf}} parameter.
> To reproduce within the techproducts example, compare:
> {code}
> curl 
> 'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=name%7DMA147LL/A'
> curl 
> 'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=features%7DMA147LL/A'
> curl 
> 'http://localhost:8983/solr/techproducts/select?q=%7B!mlt+qf=name,features%7DMA147LL/A'
> {code}
> The first two queries return 8 and 5 results, respectively. The third query 
> doesn't return any results (not even the matched document).
> In contrast, the MoreLikeThis Handler works as expected (accounting for the 
> default {{mintf}} and {{mindf}} values in SimpleMLTQParser):
> {code}
> curl 
> 'http://localhost:8983/solr/techproducts/mlt?q=id:MA147LL/A&mlt.fl=name&mlt.mintf=1&mlt.mindf=1'
> curl 
> 'http://localhost:8983/solr/techproducts/mlt?q=id:MA147LL/A&mlt.fl=features&mlt.mintf=1&mlt.mindf=1'
> curl 
> 'http://localhost:8983/solr/techproducts/mlt?q=id:MA147LL/A&mlt.fl=name,features&mlt.mintf=1&mlt.mindf=1'
> {code}
> After adding the following line to 
> {{example/techproducts/solr/techproducts/conf/solrconfig.xml}}:
> {code:language=XML}
> <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
> {code}
> The first two queries return 7 and 4 results, respectively (excluding the 
> matched document). The third query returns 7 results, as one would expect.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to