cancel
Showing results for 
Search instead for 
Did you mean: 

How to search based on custom properties using TREX

Former Member
0 Kudos
104

Hi, i have installed TREX and able to create indexes and do basic searching. i have created some custom resurce types in sys admin->sys.config->cm->global services->resource types. i have created some properties in property meta data for these types. i made these properties indexable. but how can i search based on these properties using trex? can anybody know how to do this? please help me. thanks in advance..

thanks & regards

kranthi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Robert, thanks for your reply. is there any other way to search on custom properties? the problem is if i have hundreds of custom properties, manually adding all these in search option set is difficult. is there any setting where if i make the property as indexable , it will be searched by the TREX automatically.

thanks & regards

kranthi

D021954
Advisor
Advisor
0 Kudos

Hi Kranthi,

by standard search (term entered in the normal search input field) is executed on the properties:

Content, Description, Display Name

If your want to enlarge this set of properties you can specify 'Additional Search Properties' in your relevant Search Option Set (default UISearch).

There are two things to keep in mind:

1. Properties needs to be modelled and indexable

2. Performance is influenced slightly, because the enlarge search query

Regards Matthias Röbig-Landau

Former Member
0 Kudos

hi kranti

i need 1 help from u i came to know that u installed TREX throuh u r post,i also installed TREX in linux but i strucked in post configuration while setting environment variable.

to set environment variables

The following steps are given for entering scripts in login file

1.logon as TREX User

2.add the following call tothe file<HOME_TREXUSR>/.profile

. <TREX_DIR> /TREXSetting.sh

3.add the following call to the file <HOME_TREXUSR>/.login

source.<TREX_DIR> /TREXSetting.csh

in the above 2 points can usuggest me what i've to give in the place of <HOME_TREXUSR> wht it actually mean

i'll be very much thankfull to you if you do this favour for me.

Regards

Gnana

Former Member
0 Kudos

Hi Gnanadeva, You might have created a user before installation with name trex_instance_number. HOME_TREXUSR refers to the home directory of this user.

Former Member
0 Kudos

hi kranti,

thanks for u r reply,i've created a user called trex_09.and i added the follwing code to TREXSettings.sh and .csh files code is

<b>/home/trex_09/ .profile</b> which is mentioned in installation file.

but while running the command . TREXSettings.sh it is showing the following

<b>bash:/home/trex_09/ is a directory</b>

so wht shall is do now is the above procedure is correct or not

awaiting for reply

Regards

Gnana

Former Member
0 Kudos

Hi gnanadeva reddy,

i have installed trex in windows. i have not worked in linux so i couldnot help you. you could open another thread and let some experts answer your question..

thanks & regards

kranthi

Former Member
0 Kudos

Hi Kranthi,

for this you have to modify the search option set used in the default search iview (pcd:/portal_content/every_user/general/eu_role/com.sap.km.home_ws/com.sap.km.hidden/com.sap.km.urlaccess/com.sap.km.basicsearch) . Or better, you create your own search iView using the default Search Component and your own Search Option Set.

To modify or to create a new set of search options choose System Administration -> System Configuration -> Knowledge Management -> Configuration

-> Content Management -> User Interface -> Search -> Search Options Set.

The relevant parameter for you is "Allowed Predefined Properties". Add your own properties to the Search Options Set UISearch.

Check out this documention on deeper knowledge of customizing the search UI: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e6fdf113-0701-0010-d1ad-cc8...

Hope this helps,

Robert