Hi there,I'm adding a content through code to the repository, and then I try to search it using lucene but I have no results. Using "nint" as search string I can see that is was not indexed.My code:
Node node2 = this.session.getRootNode();
Node child = node2.addNode("testeindex5", "cm:content");
child.setProperty("cm:title", "My test");
child.setProperty("cm:content", "Just a test content.");
Query:
String query = "PATH:\"//*\" AND TEXT:\"Just\" ";
StoreRef sr = new StoreRef("workspace", "SpacesStore");
SearchParameters sp = new SearchParameters();
sp.addStore(sr);
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery(query);
Then I'm getting the ResultSet using:serviceRegistry.getSearchService().query(sp);I'm using the latest Alfresco version (yesterday checkout from HEAD)Why my new content is not being indexed?