on 04-20-2010 2:25 PM
Hi all.
I´m doing a program to search at the KM with TREX and I found out that when I do the search with session, I don´t get the results containing the search keywords in the content; I mean:
File 1 -> Name: test.txt / Content: "this is a file"
File 2 -> Name: file.txt / Content: "this is a test"
If I search "test" I´ll get the File 1, but not the File 2 too.
If I try with a search without session, I get both. Do you know why??
Here is my code:
IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
SearchQueryListBuilder sqb = new SearchQueryListBuilder();
sqb.setSearchTerm(searchString);
IQueryEntryList qel = sqb.buildSearchQueryList();
IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
List indexList = new ArrayList();
indexList = indexService.getActiveIndexes();
session = federatedSearch.searchWithSession(qel, indexList, c);
rawResults = session.getSearchResults(currentResultIndex, finalResultIndex);
Thanks a lot in advance...
It seems I was wrong... Indexing problem?? Maybe but... Solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.