You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mike (JIRA)" <ji...@apache.org> on 2016/10/20 23:49:58 UTC

[jira] [Updated] (SOLR-9676) FastVectorHighligher log message could be improved

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

Mike updated SOLR-9676:
-----------------------
    Description: 
If you try to use the FastVectorHighlighter on a field that doesn't have TermPositions and TermOffsets enabled, you get an ok error message:

{{WARN  org.apache.solr.highlight.DefaultSolrHighlighter  – Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions and TermOffsets.}}

If you heed that message, and dutifully add TermPositions and TermOffsets to your schema, you get a crashing message that says:

{{
Blah, blah, stacktrace
....
Caused by: java.lang.IllegalArgumentException: cannot index term vector offsets when term vectors are not indexed (field="court")
...
}}

Can we update the first message to say:

{{Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions, TermOffsets, and TermVectors.}}

That'd save at least one headache next time I screw this up...

  was:
If you try to use the FastVectorHighlighter on a field that doesn't have TermPositions and TermOffsets enabled, you get an ok error message:

{{WARN  org.apache.solr.highlight.DefaultSolrHighlighter  – Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions and TermOffsets.}}

If you heed that message, and dutifully add TermPositions and TermOffsets to your schema, you get a crashing message that says:

{{Blah, blah, stacktrace
....
Caused by: java.lang.IllegalArgumentException: cannot index term vector offsets when term vectors are not indexed (field="court")
...}}

Can we update the first message to say:

{{Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions, TermOffsets, and TermVectors.}}

That'd save at least one headache next time I screw this up...


> FastVectorHighligher log message could be improved
> --------------------------------------------------
>
>                 Key: SOLR-9676
>                 URL: https://issues.apache.org/jira/browse/SOLR-9676
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: highlighter
>    Affects Versions: 4.10.4
>            Reporter: Mike
>            Priority: Minor
>
> If you try to use the FastVectorHighlighter on a field that doesn't have TermPositions and TermOffsets enabled, you get an ok error message:
> {{WARN  org.apache.solr.highlight.DefaultSolrHighlighter  – Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions and TermOffsets.}}
> If you heed that message, and dutifully add TermPositions and TermOffsets to your schema, you get a crashing message that says:
> {{
> Blah, blah, stacktrace
> ....
> Caused by: java.lang.IllegalArgumentException: cannot index term vector offsets when term vectors are not indexed (field="court")
> ...
> }}
> Can we update the first message to say:
> {{Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions, TermOffsets, and TermVectors.}}
> That'd save at least one headache next time I screw this up...



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

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