cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search Top X

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Is it possible to perform and retrieve a search for only the TOP X results?

like SELECT TOP 10 * FROM TABLE in SQL but an Alfresco Lucene search method?

Thanks
1 REPLY 1

amarendra_thaku
Champ in-the-making
Champ in-the-making
Dear drabnidr,

If you are doing a priority based search.Display the search result based on the exact or partial match, Then its a trivial task.You need to look in to Lucene Api`s, as i am doing it now.Will let you know if possible if get any solution.

Or if you have display only 10 records then you can set limit on the search result.Look into the SearchParameter Api(setLimit()).

For more info visit the link for more information

http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax.

Thanks & Regards

Amarendra Thakur