[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    [jira] [Updated] (LUCENE-4096) impossible to CheckIndex if you use norms other than byte[]
From:       "Robert Muir (JIRA)" <jira () apache ! org>
Date:       2012-05-31 4:13:23
Message-ID: 1431712715.20187.1338437603105.JavaMail.jiratomcat () issues-vm
[Download RAW message or body]


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

Robert Muir updated LUCENE-4096:
--------------------------------

    Attachment: LUCENE-4096.patch

Patch: re-enabling checkindex for TestCustomNorms, enabling SimpleText (its just a \
relic that its disabled for the test), and fixing CheckIndex not to use \
IndexSearcher/TermQuery, but just TermsEnum+DocsEnum for those 2 places instead.  
> impossible to CheckIndex if you use norms other than byte[]
> -----------------------------------------------------------
> 
> Key: LUCENE-4096
> URL: https://issues.apache.org/jira/browse/LUCENE-4096
> Project: Lucene - Java
> Issue Type: Task
> Components: core/index
> Affects Versions: 4.0
> Reporter: Robert Muir
> Fix For: 4.0
> 
> Attachments: LUCENE-4096.patch
> 
> 
> I noticed TestCustomNorms had the checkIndexOnClose disabled, but
> I think this is a real problem.
> If someone wants to use e.g. float[] norms, they should be able to run
> CheckIndex.
> CheckIndex is fine with validating any norm type, the problem is that it sometimes \
> creates an IndexSearcher and fires off TermQueries for some calculations. This \
> causes it to (wrongly) fail, because DefaultSimilarity expects single byte norms. I \
> don't think CheckIndex needs to use TermQuery here, we can do this differently so \
> it doesnt use IndexSearcher or TermQuery but just the postings apis.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic