cancel
Showing results for 
Search instead for 
Did you mean: 

How to exceed Lucene Limit Search?

razieltd
Champ in-the-making
Champ in-the-making
Hi!

Is it possible with a ws java-backed research by lucene an unlimited number of nodes?
Now if i try to reseach in a store that contains 1100 nodes, the results list contains only 1000

I found this code:

SearchParameters sp = new SearchParameters();
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery("PATH:\"/*\"");
sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
sp.setLimitBy(LimitBy.FINAL_SIZE);
sp.setLimit(1100);
rs=searchService.query(sp);

but nothing… if i try with sp.setLimit(10); work and my result list length is 10 but if i try with any value more higher then 1000 dont work… Smiley Sad

why? Smiley Indifferent
20 REPLIES 20

Not applicable
:shock:


Thx!  Smiley Very Happy

I apologize for my ignorance  :lol:  can you show me how to use a query sql (tables)? I did not know that i can use in alfresco  Smiley Surprised .

Thx so much

I had the same question, Raziel.  Never a stupid question!  Well, maybe sometimes  :wink:

Thanks for the tip!