AnsweredAssumed Answered

Lucene query problem

Question asked by beslan on Feb 12, 2013
Latest reply on Feb 12, 2013 by jpfi
Hi,

I am using SDK 4.2.b and java api. When I call a lucene query like below, it takes 5 minutes and there are only 4 contents.

In alfresco.log I saw lines about lucene index cleaner.I added log file.

Any suggestions.


      SearchParameters searchParameters = new SearchParameters();
      searchParameters.addStore(spacesStoreRef);
      searchParameters.addSort(orderBy, !descending);
      searchParameters.setQuery(query);
      searchParameters.setLanguage(SearchService.LANGUAGE_LUCENE);
      searchParameters.setMaxPermissionCheckTimeMillis(30000);
      searchParameters.setMaxPermissionChecks(100000);

      ResultSet results = this.getServiceRegistry().getSearchService().query(searchParameters);


Thanks,
Beslan

Attachments

Outcomes