luceneSearch with max hits
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011 11:27 AM
Hi,
Does any one played arround with the luceneSearch function and the max hits parameter?
When I do:
Thanks
Denis
Does any one played arround with the luceneSearch function and the max hits parameter?
When I do:
var gens = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/content/1.0}person\'','',false,10000); //public org.mozilla.javascript.Scriptable luceneSearch(java.lang.String search, // java.lang.String sortColumn, // boolean asc, // int max)
I only get 1000 hits even if it must be much more.Thanks
Denis
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011 01:06 PM
Hi,
This behaviour is because of below setting.
#
# The maximum number of clauses that are allowed in a lucene query
#
lucene.query.maxClauses=10000
Increase this number to get more results. But take care of the performance of the system as well.
Thanks,
Patil
Cignex Technologies
Bangalore
This behaviour is because of below setting.
#
# The maximum number of clauses that are allowed in a lucene query
#
lucene.query.maxClauses=10000
Increase this number to get more results. But take care of the performance of the system as well.
Thanks,
Patil
Cignex Technologies
Bangalore
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011 05:44 AM
Tanks,
please help an newbee in which file the parameter must be changed
Many thanks
Denis
please help an newbee in which file the parameter must be changed
Many thanks
Denis
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011 05:50 AM
… found it.
Here is a link to the documentation:
http://wiki.alfresco.com/wiki/Full-Text_Search_Configuration
and here another interesting thread about this problem:
http://forums.alfresco.com/en/viewtopic.php?f=4&t=34639#p100384
Denis
Here is a link to the documentation:
http://wiki.alfresco.com/wiki/Full-Text_Search_Configuration
and here another interesting thread about this problem:
http://forums.alfresco.com/en/viewtopic.php?f=4&t=34639#p100384
Denis
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011 06:49 AM
… as i looked in the file. I saw that i was allready set to 10000.
Any other ideas?
Denis
Any other ideas?
Denis
