[ 
https://issues.apache.org/jira/browse/SOLR-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-4835.
----------------------------

    Resolution: Not A Problem

the queries produced by the join parser contain no "terms" that the highlighter 
can use when highlighting docs -- a best it could give the highlighter the ids 
of the "from" documents.

in your specific example the input query for the join query happens to match 
terms in both the "from" documents and the "to" documents, but that won't 
necessarily be true in the general case.

the "hl.q" param exists precisesly for cases like this where the main query 
query is complex and doesn't lend itself to highlighting....

http://localhost:8983/solr/collection1/select?q={!join+from=id+to=id}belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*&hl.q=belkin
                
> highlighting in combination with join does not work in solr 4.0 - 4.2
> ---------------------------------------------------------------------
>
>                 Key: SOLR-4835
>                 URL: https://issues.apache.org/jira/browse/SOLR-4835
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter, query parsers
>    Affects Versions: 4.0, 4.1, 4.2, 4.2.1
>            Reporter: Matthias Herrmann
>              Labels: documentation
>
> I need to highlight results based on a query that contains a join operation. 
> I want to highlight docs that occur in the "to" set which is in my 
> understanding the final result set of the join operation.
> I made a simple example by indexing example/exampledocs/*.xml which ships 
> with standard Solr distribution. Having these documents indexed to the 
> example server I run the following query:
> [http://localhost:8983/solr/collection1/select?q=belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*
>  ]
> In the query result the section "highlighting" looks like:
> {code}
> "highlighting":{
>     "F8V7067-APL-KIT":{
>       "name":["<em>Belkin</em> Mobile Power Cord for iPod w/ Dock"],
>       "manu_id_s":["<em>belkin</em>"],
>       "manu":["<em>Belkin</em>"]},
>     "IW-02":{
>       "manu_id_s":["<em>belkin</em>"],
>       "manu":["<em>Belkin</em>"]}}
> {code}
> So highlighting works fine. BUT when running this query: 
> [http://localhost:8983/solr/collection1/select?q=\{!join+from=id+to=id\}belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*]
> In the query result the section "highlighting" looks like:
> {code}
> "highlighting":{
>     "F8V7067-APL-KIT":{},
>     "IW-02":{}}
> {code}
> As you can see highlighting does not work in combination with join. Is this a 
> bug or am I missing something?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to