cancel
Showing results for 
Search instead for 
Did you mean: 

Query Lucece one time with result and one time no?

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

i have this strange problem:
i have extended my alfresco 3.1 with a new very simple servlet. This servlet have a start jsp form where can i change the basic lucene's query and a result jsp with pagination.
so i do my search and i obtain my results (32) and then i go back to the form page(direct link to the jsp, no button back of explorer or mozilla) and restart the same research but i obtain zero result! how it is possible? the realy strange thing is that after the zero results i copy the query and paste in the node browser i obtain again the zero results!!! how if the alfresco is freeze o something like that! after 4-5 times of seraching i obtain again my 32 results!

this is the code:
            logger.debug("Query Lucene: "+query);
            StoreRef storeRef= StoreRef.STORE_REF_WORKSPACE_SPACESSTORE;
            SearchParameters parameters=new SearchParameters();
            parameters.addStore(storeRef);
            parameters.setLanguage(SearchService.LANGUAGE_LUCENE);
            parameters.setQuery(query);
            parameters.addSort("TYPE", true);
            if(fieldOrd!=null && !fieldOrd.equals("")){
                fieldOrd="@"+fieldOrd;
                parameters.addSort(fieldOrd, false);
            }
            ResultSet rs=searchService.query(parameters);
            List<NodeRef> list=rs.getNodeRefs();
System.out.println("n°: "+list.size());
12 REPLIES 12

razieltd
Champ in-the-making
Champ in-the-making
i dont know how can i fix it - any other ideaa?

derek
Star Contributor
Star Contributor
When the error occurs, what happens when you shut down and restart your browser and/or if you clear the browser caches?

razieltd
Champ in-the-making
Champ in-the-making
nothing special … tha same error  :?

it's really frustrating  Smiley Sad