Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
CSSearchEngine hangs after multiple queries
corykim
I have a method that runs the following code:
CSSearchEngine s = getSearchEngine();
CSAndConstraint constraint = new CSAndConstraint(new CSConstraint[] {
new CSPathConstraint(filePath),
new CSFieldConstraint(EA_REUSABLE_COMPONENT, CSOperator.EQUALS, "true"),
new CSNotConstraint(new CSPathConstraint("*.mif"))});
return s.search(new CSArea[] { searchArea }, constraint, SEARCH_PAGE_SIZE_DEFAULT);
After executing this code about five times, CSSDK hangs and will not return any results. On the other hand, the following method:
s.search(new CSArea[] { searchArea }, constraint);
The version of the method that doesn't specify a page size runs fine, but then I can only get the first page. I've tried various sizes of page size, but it doesn't seem to help.
Any ideas?
Find more posts tagged with
Comments
Rick Poulin
Any error messages in iw.tssearch.log on the search box?
corykim
Good catch. I was only checking the TeamSite logs. The apparent problem is:
[14 Jun 2011 10:33:57,025] INFO com.interwoven.hunter.search.QueryProcessor (Thread-11) - Maximum queries per user =2
I wrote a test case that runs the same query in series, multiple times, and I have no problems. Apparently the search engine locks out -- very rudely, if you ask me -- a concurrent query that exceeds the limit. I'll have to see if there's a way to increase the number; also it may be that this problem would only appear in testing, and not in the real world.
excel_export_example_forum.rptdesign
corykim
Actually it wasn't that. Apparently there was one particular search that was returning too many results, and it caused subsequent searches to bomb. Thanks for your help pointing me to the problem.