My Oracle Support Banner

Search WCS Assets By URL Using Lucene Api (Doc ID 2582723.1)

Last updated on DECEMBER 06, 2022

Applies to:

Oracle WebCenter Sites - Version and later
Information in this document applies to any platform.


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?


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.