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

Erick Erickson resolved SOLR-10561.
-----------------------------------
    Resolution: Invalid

> Unified Highlighter not responding with more than 13 snippets
> -------------------------------------------------------------
>
>                 Key: SOLR-10561
>                 URL: https://issues.apache.org/jira/browse/SOLR-10561
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - Velocity
>    Affects Versions: 6.5
>         Environment: Windows 10
>            Reporter: Sam
>
> Hi, I've been working on a Solr project in Windows for a while... here i'm 
> trying to index a book containing (118,704 words) and then do a basic term 
> search, however the Velocity interface is not returning the expected results, 
> Velocity will only return a maximum of 13 terms highlighted within 13 
> snippets, even though my snippets is set to much higher than 13. I've tried 
> this both with the Original and Unified highlighter with the same results.
> The XML data file for my book has the following fields as shown below:
> <?xml version="1.0" encoding="UTF-8"?>
> <add>
> <doc>
> <field name="id">WALDEN-utf8.xml</field>
> <field name="title">WALDEN</field>
> <field name="catagory">Sam-tests</field>
> <field name="content">
> (118,704 words) ... too large to paste here!
> </field>
> <field name="keywords"></field>
> </doc>
> </add>
> - I've modified my schema via the API and indexed my file successfully.
> - I've also managed to turn on highlighting using the following command:
> curl http://localhost:8983/solr/mycore/config/params -H 
> 'Content-type:application/json' -d 
> "{"set":{"browse":{"hl":"on","hl.method":'original',"hl.snippets":'1000',"hl.fl":'*'}}}"
> Again Velocity will return the correct number of highlighted terms, in the 
> correct number of snippets if i reduce the hl.snippets field to anything less 
> than or equal to 13.
> - I've also read the documentation online at: 
> https://cwiki.apache.org/confluence/display/solr/Highlighting
> and it clearly says:
> "hl.snippets  1       Specifies maximum number of highlighted snippets to 
> generate per field. It is possible for any number of snippets from zero to 
> this value to be generated."
> I'm not sure why this is happening, is my approach to the whole project 
> wrong? I have read that Solr can successfully index many books. The Admin UI 
> logs doesn't show any problems either, also I've been looking on the net but 
> still no luck as to as why this is happening. Please help and apologies if my 
> method or place of escalation is not correct (newbie :)).
> Please let me know if you require further information as well.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to