You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Maria Odea Ching (JIRA)" <ji...@codehaus.org> on 2009/04/02 05:45:13 UTC

[jira] Updated: (MRM-1166) Search using some character keywords (asterisk, comma, double quote, colon) results to HTTP Error: 500

     [ http://jira.codehaus.org/browse/MRM-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-1166:
----------------------------------

    Summary: Search using some character keywords (asterisk, comma, double quote, colon) results to HTTP Error: 500  (was: Search using a some character keyword (asterisk, comma, double quote, colon) results to HTTP Error: 500)

> Search using some character keywords (asterisk, comma, double quote, colon) results to HTTP Error: 500
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MRM-1166
>                 URL: http://jira.codehaus.org/browse/MRM-1166
>             Project: Archiva
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Maria Odea Ching
>             Fix For: 1.2.1
>
>
> When searching for '*', the resulting error message is:
> HTTP ERROR: 500
> maxClauseCount is set to 1024
> RequestURI=/archiva/quickSearch.action
> Caused by:
> org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
> 	at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:163)
> 	at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:154)
> 	at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:63)
> 	at org.apache.lucene.search.WildcardQuery.rewrite(WildcardQuery.java:54)
> 	at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:383)
> 	at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:162)
> 	at org.apache.lucene.search.Query.weight(Query.java:94)
> 	at org.apache.lucene.search.Hits.(Hits.java:85)
> 	at org.apache.lucene.search.Searcher.search(Searcher.java:61)
> -----------
> While searching for the other characters results to the following error:
> HTTP ERROR: 500
> Index: 0, Size: 0
> RequestURI=/archiva/quickSearch.action
> Caused by:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> 	at java.util.ArrayList.get(ArrayList.java:321)
> 	at org.sonatype.nexus.index.DefaultQueryCreator.constructQuery(DefaultQueryCreator.java:207)
> 	at org.sonatype.nexus.index.DefaultNexusIndexer.constructQuery(DefaultNexusIndexer.java:468)
> 	at org.apache.archiva.indexer.search.NexusRepositorySearch.constructQuery(NexusRepositorySearch.java:188)
> 	at org.apache.archiva.indexer.search.NexusRepositorySearch.search(NexusRepositorySearch.java:74)
> 	at org.apache.maven.archiva.web.action.SearchAction.quickSearch(SearchAction.java:288)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira