[hibernate-issues] [Hibernate-JIRA] Assigned: (HSEARCH-604) Add better exception handling for FulltextQueryImpl.calculateTopDocsRetrievalSize()

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Oct 8 06:12:57 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard reassigned HSEARCH-604:
----------------------------------------

    Assignee: Emmanuel Bernard

> Add better exception handling for FulltextQueryImpl.calculateTopDocsRetrievalSize()
> -----------------------------------------------------------------------------------
>
>                 Key: HSEARCH-604
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-604
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 3.3.0.Beta1
>            Reporter: Hardy Ferentschik
>            Assignee: Emmanuel Bernard
>             Fix For: 3.3.0.Beta2
>
>
> Having a page offset of {{0}} and a page size of {{0}} (arguably a bad combination) you get a 
> {code}
> java.lang.IllegalArgumentException: nDocs must be > 0
>     at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:169)
>     at org.apache.lucene.search.Searcher.search(Searcher.java:181)
> {code}
> We should improve the code and error handling. With a page size of {{0}} we can return just the empty list.
> See also - https://forum.hibernate.org/viewtopic.php?f=9&t=994710

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

        


More information about the hibernate-issues mailing list