[ https://issues.apache.org/jira/browse/SOLR-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660483#comment-13660483 ]
Matthias Herrmann commented on SOLR-4835: ----------------------------------------- I found a workaround for this issue by using lucene OR operator. When the query looks like: [http://localhost:8983/solr/collection1/select?q=belkin+OR+\{!join+from=id+to=id\}belkin&defType=lucene&wt=json&indent=true&hl=true&hl.fl=*] The results are as expected. > 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-ALPHA > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org