You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Kurt Stein (JIRA)" <ji...@apache.org> on 2009/02/09 18:08:59 UTC

[jira] Commented: (JSPWIKI-498) Performance Issues with Lucene Index

    [ https://issues.apache.org/jira/browse/JSPWIKI-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671925#action_12671925 ] 

Kurt Stein commented on JSPWIKI-498:
------------------------------------

Update to my Research on LuceneSearchProvider.

I added some Stopwatches to see where the bottleneck is. It is the LuceneHighlighter!

The Problem is the part where it is getting the fragments for all searchresults. 

This is unessesary because the page only displays the first 20 Searchresults(1-20).

And if you go to the next page JSPWIKI start a new query but displays only results 21-40.

In my case i had 500 results which took me 30 seconds, I dont want this to happen on a Wiki with more than 10000 pages as Searchresult.

Suggestion: 
1.Transmit the "resultsdisplayed" parameter *pagesize* as *HitLength* from 
AjaxSearch.jsp :
{quote} 
wiki:SetPagination start="${param.start}" total="<%=list.size()%>" pagesize="20")
{quote}

2.And then call the *LuceneSearchProvider.findPages(query, flags, startFromHit, HitLength)*

3.Get only the fragments from *startFromHi * till *startFromHi* + *HitLength*


What do you think?

> Performance Issues with Lucene Index
> ------------------------------------
>
>                 Key: JSPWIKI-498
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-498
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Default template
>    Affects Versions: 2.8.1
>         Environment: Win 2003 on XEN-Server, 3 GB RAM, 4 x Intel Xeon 2Ghz
>            Reporter: Kurt Stein
>
> Our Wiki-Luceneindex has swollen to 33 MB and if someone searches words like "find" he gets about 500 results. Only problem is, it takes about 30 seconds to complete the search.
> I have looked a bit into the problem and there is something strange to me. JSPWiki searches twice every query. 
> Once in search.jsp and afterwards in AjaxSearch.jsp.
> The filteredList from search.jsp is written to the pagecontext but this information is never read within the AjaxSearch.jsp. Thus AjaxSearch.jsp makes a second search.

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