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

Alan Woodward updated LUCENE-7679:
----------------------------------
    Attachment: LUCENE-7679.patch

Here is a patch that re-organises how MemoryIndex builds its internal field 
Info structures.  If an IndexableField is passed to addField(), we re-use as 
many of its FieldType settings as possible.

I needed to make FieldInfo.setDocValuesType() public, but that brings it into 
line with .setPointDimensions() so I don't think it's too bad a change?

> MemoryIndex.addField() ignores some FieldType settings
> ------------------------------------------------------
>
>                 Key: LUCENE-7679
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7679
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Alan Woodward
>         Attachments: LUCENE-7679.patch
>
>
> Spotted by a luwak user: https://github.com/flaxsearch/luwak/issues/135.  
> MemoryIndex never omits norms, which means that it can produce incorrect 
> scores.



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

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

Reply via email to