Search WCS Assets By URL Using Lucene SearchEngine.search() Api
(Doc ID 2582723.1)
Last updated on DECEMBER 06, 2022
Applies to:
Oracle WebCenter Sites - Version 12.2.1.3.0 and laterInformation in this document applies to any platform.
Goal
Trying to achieve asset search using URL user input using the Lucene API
Though the implementation doesn't throw any error the results are not accurate.
Below is the implementation code
if (!assetUrl.equals("")) {
urlQuery = new QueryExpressionImpl( "Webreference", Operation.PHRASE, assetUrl );
finalQuery=fwtagsQuery.and (urlQuery);
}
SearchEngine().searchConfig.getEngine( "Lucene" ).search( Collections.singletonList( "<ASSETTYPE>"), finalQuery );
Tried re-indexing the Webreference field after enabling stored=true and tokenize=true
Does the Lucene API support URL search?
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |