Returning extra fields in search results

Chetan Sharma asked on March 9, 2014 12:31

Hi ,

I wish to return extra fields in search results returned via smart search.

Which file I need to touch to modify the result set?

I looked at the results via luke tool and I already have this field as part of the index. I just need to modify the fields whic are returned as part of the result set.

Thank You Chetan

Recent Answers


Juraj Ondrus answered on March 10, 2014 03:27

Hi,

Have you tried modifying the search results transformation and add those fields there? Like for example: <%# GetSearchValue("fieldName") %>

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on March 10, 2014 03:56

Thanks Juraj,

Actually I have created a webservice that is making use of SearchJelper.search function. In my returned dataset(as a json) I cant see all fields which are there in index.

By reading this article I came to know that not all fields are returned by kentico.

So how can I add these fields like "classname" in my result set. To clarify again I am returning results via a webservice as a json.

Thank You Chetan

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.