留言板

Custom Attributes for User

venka reddy,修改在10 年前。

Custom Attributes for User

Regular Member 帖子: 231 加入日期: 11-3-23 最近的帖子
Hi,

I have added custom attribute for the userEntity as string .

I need to make that string as searchable, so there is an option to make searchable as "As aText" "As a keyword".

So what is the difference between these 2 options? Which one will be more suitable?
thumbnail
Harish Kumar,修改在10 年前。

RE: Custom Attributes for User

Expert 帖子: 483 加入日期: 10-7-31 最近的帖子
AFAIK In case of As a Text input string will be subject to tokenization while parsed by lucene or solr. on the other hand in case of As a Keyword, Tokenizer does not split the input at all. No processing in performed on the string, and the whole string is treated as a single entity.
thumbnail
Vilmos Papp,修改在10 年前。

RE: Custom Attributes for User

Liferay Master 帖子: 529 加入日期: 10-10-21 最近的帖子
Hi,

Do you mean a custom field, or you created an EXT plugin? If the first one, you can select the "Indexed" version of the field. If you are going to modify indexing, you should decide which search method to find the new field. If you use keyword then the simple search is fine for you. If you want the other way, then you have to modify the advanced search UI to meet your requirements.