cancel
Showing results for 
Search instead for 
Did you mean: 

Different search results

qsdmv
Champ in-the-making
Champ in-the-making
I have used alfresco search service API and node browser but got different results. Both uses Lucene and exactly same query. I have used this for a while until someone mentioned this. What could cause this?

API:


String query = "+TYPE:\"" + MyContentModel.ARTICLE + "\" +@web\\:parent:\"" + nodeId + "\"";
        SearchParameters searchParameters = new SearchParameters();
        searchParameters.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
        searchParameters.setLanguage(SearchService.LANGUAGE_LUCENE);
        searchParameters.setQuery(query);
        ResultSet rs = null;
        try {
           rs = searchService.query(searchParameters);
        } finally {
           if ( rs != null ) {rs.close();}
        }


From node browser:

I run: (this query pulls out from above query string, exactly same)

+TYPE:"{http://www.alfresco.org/model/mycontentmodel/1.0}article" +@web\:parent:"workspace://SpacesStore/72069a87-4556-4801-9688-beb6e931baf6"


Thanks in advance
2 REPLIES 2

lutz_horn
Champ in-the-making
Champ in-the-making
What is the difference of the results you get?

qsdmv
Champ in-the-making
Champ in-the-making
I got different number. Thanks in advance.