[ 
https://issues.apache.org/jira/browse/LUCENENET-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984932#action_12984932
 ] 

Patric Forsgard commented on LUCENENET-388:
-------------------------------------------

Now I will got the exception instead and the application will not crash.
------------
System.IO.IOException: there are more terms than documents in field "TypeName", 
but it's impossible to sort on tokenized fields
   at Lucene.Net.Search.ParallelMultiSearcher.Search(Weight weight, Filter 
filter, Int32 nDocs, Sort sort) in C:\Work\Search\ParallelMultiSearcher.cs:line 
187
   at Lucene.Net.Search.Searcher.Search(Query query, Filter filter, Int32 n, 
Sort sort) in C:\Work\Search\Searcher.cs:line 107
   at Search.Lucene.Querying.SearchQuery.Execute(SearchRequest request, 
Searcher searcher)
   at Search.SearchService.Search(QueryRequest request) in 
C:\Work\Search\SearchService.cs:line 115
   at ProductCatalog_SearchResult.Search(QueryRequest searchRequest, 
SecurityToken securityToken) in 
c:\Work\ProductCatalog\SearchResult.aspx.cs:line 147
   at ProductCatalog_SearchResult.GridSort(Object source, 
GridSortCommandEventArgs e) in c:\Work\ProductCatalog\SearchResult.aspx.cs:line 
281
   at Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand(Object source)
   at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler 
sourceControl, String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

> Exception: will crash and restart the web-application.
> ------------------------------------------------------
>
>                 Key: LUCENENET-388
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-388
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: IIS7, Windows 7, Lucene.Net 2.9.1
>            Reporter: Patric Forsgard
>            Priority: Critical
>
> When getting the followin exception, the iis thread is crashing and the site 
> is restarting. I think it should get the exception, but it should not crash 
> the site and restart the application each time.
> -------------------------------------------
> System.SystemException was unhandled
>   Message=there are more terms than documents in field "TypeName", but it's 
> impossible to sort on tokenized fields
>   Source=Lucene.Net
>   StackTrace:
>        at 
> Lucene.Net.Search.FieldCacheImpl.StringIndexCache.CreateValue(IndexReader 
> reader, Entry entryKey)
>        at Lucene.Net.Search.FieldCacheImpl.Cache.Get(IndexReader reader, 
> Entry key)
>        at Lucene.Net.Search.FieldCacheImpl.GetStringIndex(IndexReader reader, 
> String field)
>        at 
> Lucene.Net.Search.FieldComparator.StringOrdValComparator.SetNextReader(IndexReader
>  reader, Int32 docBase)
>        at 
> Lucene.Net.Search.TopFieldCollector.OneComparatorNonScoringCollector.SetNextReader(IndexReader
>  reader, Int32 docBase)
>        at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter 
> filter, Collector collector)
>        at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter 
> filter, Int32 nDocs, Sort sort, Boolean fillFields)
>        at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter 
> filter, Int32 nDocs, Sort sort)
>        at Lucene.Net.Search.MultiSearcherThread.Run()
>        at System.Threading.ExecutionContext.runTryCode(Object userData)
>        at 
> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
>  code, CleanupCode backoutCode, Object userData)
>        at System.Threading.ExecutionContext.Run(ExecutionContext 
> executionContext, ContextCallback callback, Object state)
>        at System.Threading.ThreadHelper.ThreadStart()
>   InnerException: 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to