My Oracle Support Banner

REST Search 'contains' Operation Partial Word Search Not Working (Doc ID 1570994.1)

Last updated on JANUARY 06, 2023

Applies to:

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

Symptoms

The Test_C assettype is enabled for lucene indexing.  However not able to use REST search 'contains' operation to find Test_C assets with partial word search.

For example, attempting to use the following url to search for Test_C assets where the name field contains a word that have the letter 'a' in it:

http://hostname/servlet/REST/sites/TestSite/types/Test_C/search?field:name:contains=a

Returns:

<ns2:assetsBean xmlns:ns2="http://www.fatwire.com/schema/rest/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.fatwire.com/schema/rest/1.0 http://hostname:80/servlet/schema/rest-api.xsd">
<total>0</total>
<startindex>0</startindex>
<count>0</count>
</ns2:assetsBean>

Cause

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
Symptoms
Cause
Solution


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