Skip to Content
0
Former Member
Oct 27, 2005 at 10:06 AM

Search within folders

31 Views

I have an index with one datasource. The datasource is a folder in the ~system repository. Folders from other repositories are linked within this folder. In the Trex Admin tool I can see that all files are indexed and synchronized.

If I query the whole index, documents are found. But if I try to search within a subfolder (searchFromHere Parameter), nothing is found.

IFederatedSearch.searchWithSession(IQueryEntryList queryEntryList, ICollection searchFromHere, IResourceContext context) ;

As the searchFromHere Parameter I tried both "/arepository/folder/subfolder" and "~system/myIndexFolder/linkToFolderInDifferentRepository/subfolder". Where the subfolder is identical. Both with empty results.

IFederatedSearch.searchWithSession(IQueryEntryList queryEntryList, java.util.List indexes, IResourceContext context);

With the same IQueryEntryList finds the documents in the subfolder.

If I upload a document to a subfolder created inside the (not linked) indexfolder, the documnet is found if I do a search within this folder.

What am I doing wrong? I am using NW04SneakPrevJavaSP11.

Cheers Christof