cancel
Showing results for 
Search instead for 
Did you mean: 

lucene search

deepikamalla
Champ in-the-making
Champ in-the-making
I want to filter "Last five" items in the list.So i queried like this TYPE:"toms:taskOrderList" using lucene search and i set search parameters as

SearchParameters sp = new SearchParameters();
sp.setQuery("TYPE:\"toms:taskOrderList\"");
sp.addSort("cm:created", false);
sp.setMaxItems(5);

This code is working in enterprise but not working in community.Is there anything wrong in this approach??
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
try
<code>
SearchParameters sp = new SearchParameters();
sp.setQuery("TYPE:\"toms:taskOrderList\"");
sp.addSort("@cm:created", false);
sp.setMaxItems(5);
<code>

bikash
Champ in-the-making
Champ in-the-making
Hi,

I want to customize the search of alfresco,so that I can get a one liner snap shot of the content with search result just like google search results.