You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model with three textFields: title, description and sideText.
One of the objects of this model is filled as:
title = 'Hello'
description = 'Hello everybody'
sideText = 'Welcome'
When I search for 'Hello', my result array has only one object with the 'content' attribute containing 'Hello Hello Everybody' (concatenation of title + description'). How can I get which model fields 'Hello' was found? That is, is there an array attribute, or something like this, in the result object containing 'title' and 'description'?
Thank you.
The text was updated successfully, but these errors were encountered:
You cannot get which fields the match was found in. The searchable text is
concatenated by watson and put in a large full text index for efficient
search. This means that the informatino you're after is lost.
On 1 March 2018 at 20:26, lucasradix ***@***.***> wrote:
I have a model with three textFields: title, description and sideText.
One of the objects of this model is filled as:
title = 'Hello'
description = 'Hello everybody'
sideText = 'Welcome'
When I search for 'Hello', my result array has only one object with the
'content' attribute containing 'Hello Hello Everybody' (concatenation of
title + description'). How can I get which model fields 'Hello' was found?
That is, is there an array attribute, or something like this, in the result
object containing 'title' and 'description'?
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#241>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJFCCvvkcsx9s7kyNrZbrJCQG3JzN2mks5taFlmgaJpZM4SY8J1>
.
I have a model with three textFields: title, description and sideText.
One of the objects of this model is filled as:
title = 'Hello'
description = 'Hello everybody'
sideText = 'Welcome'
When I search for 'Hello', my result array has only one object with the 'content' attribute containing 'Hello Hello Everybody' (concatenation of title + description'). How can I get which model fields 'Hello' was found? That is, is there an array attribute, or something like this, in the result object containing 'title' and 'description'?
Thank you.
The text was updated successfully, but these errors were encountered: