|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFullTextSearch
This is an interface that currently does not have any method in its body. It is to be used for BEA repositories only .
Users should use factory class FullTextSearchFactory to create an instance of IFullTextSearch, and then pass it
to Search constrcutor to eventually create a search instance.
Here is a full example:
IMetadataQuery mQuery = FullTextQueryFactory.getMetadataQuery();
ITextQuery tQuery = FullTextQueryFactory.getTextQuery();
String textString = "winter";
ITextQueryParameter textCriteria = tQuery.buildEquals(textString);
String metaDataString = "Nederland";
IMetadataQueryParameter metadataCriteria = mQuery.buildContains("*", new String[]{metaDataString});
IFullTextSearch expression = FullTextSearchFactory.buildFullTextSearch(metadataCriteria, textCriteria, true);
String repositoryPath = "/MyRepository";
Search search = new Search(repositoryPath, -1, null, expression, true);
ISearchManager searchManager = ContentManagerFactory.getSearchManager();
ContentContext cc = new ContentContext();
cc.setParameter(ContentListKeys.BATCH_LOADING_SIZE_KEY, 100);
ISortableFilterablePagedList results = searchManager.search(cc, search);
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||