Forums de discussion

Custom Attributes for User

venka reddy, modifié il y a 10 années.

Custom Attributes for User

Regular Member Publications: 231 Date d'inscription: 23/03/11 Publications récentes
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, modifié il y a 10 années.

RE: Custom Attributes for User

Expert Publications: 483 Date d'inscription: 31/07/10 Publications récentes
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, modifié il y a 10 années.

RE: Custom Attributes for User

Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
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.