lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Garski (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2987) ExternalFileField With Invalid TrieField Key
Date Sat, 24 Dec 2011 14:22:30 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175730#comment-13175730
] 

Michael Garski commented on SOLR-2987:
--------------------------------------

Stack trace that occurs with a line in the file such as '=34' where the key value is missing:

Dec 23, 2011 8:26:17 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:493)
	at java.lang.Integer.parseInt(Integer.java:514)
	at org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:314)
	at org.apache.solr.search.function.FileFloatSource.getFloats(FileFloatSource.java:258)
	at org.apache.solr.search.function.FileFloatSource.access$000(FileFloatSource.java:59)
	at org.apache.solr.search.function.FileFloatSource$2.createValue(FileFloatSource.java:130)
	at org.apache.solr.search.function.FileFloatSource$Cache.get(FileFloatSource.java:161)
	at org.apache.solr.search.function.FileFloatSource.getCachedFloats(FileFloatSource.java:124)
	at org.apache.solr.search.function.FileFloatSource.getValues(FileFloatSource.java:83)
	at org.apache.lucene.queries.function.valuesource.MultiFloatFunction.getValues(MultiFloatFunction.java:65)
	at org.apache.lucene.queries.function.valuesource.MultiFloatFunction.getValues(MultiFloatFunction.java:65)
	at org.apache.solr.search.DoubleParser$Function.getValues(ValueSourceParser.java:1056)
	at org.apache.lucene.queries.function.valuesource.MultiFloatFunction.getValues(MultiFloatFunction.java:65)
	at org.apache.lucene.queries.function.valuesource.MultiFloatFunction.getValues(MultiFloatFunction.java:65)
	at org.apache.lucene.queries.function.valuesource.MultiFloatFunction.getValues(MultiFloatFunction.java:65)
	at org.apache.lucene.queries.function.FunctionQuery$AllScorer.<init>(FunctionQuery.java:119)
	at org.apache.lucene.queries.function.FunctionQuery$FunctionWeight.scorer(FunctionQuery.java:94)
	at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:317)
	at org.apache.lucene.search.FilteredQuery$1.scorer(FilteredQuery.java:153)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:354)
	at org.apache.solr.search.Grouping.execute(Grouping.java:351)
	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:495)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1478)
	at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:59)
	at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1255)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:636)
                
> ExternalFileField With Invalid TrieField Key
> --------------------------------------------
>
>                 Key: SOLR-2987
>                 URL: https://issues.apache.org/jira/browse/SOLR-2987
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.5, 3.6, 4.0
>            Reporter: Michael Garski
>            Priority: Minor
>
> The current error handling in reading an external file field only catches an error when
parsing the float value on a line, which then skips that line.  If the key field is a trie
field, such as a TrieIntField, and the key value in the file cannot be parsed to an int, loading
of the entire file fails.  
> Shouldn't the call to get the indexed value of the key should be in the same try/catch
as the float parsing for the line?

--
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


Mime
View raw message