Hi ,
Following is a sample feed i have.
Feed - 1
{
"entity" : "YHOO",
"Content" : "Its a great day at yahoo (YHOO) today"
}
Feed - 2
{
"entity" : "GOOG",
"Content" : "Google(GOOG) is going to launch g+"
}
Now i want the highlighting output as
"Its a great day at yahoo (YHOO) today"
"Google(GOOG) is going to launch g+"
I want to highlight based on the field "entity" rather than a predefined
like YHOO where the latter will fail to give the output i am looking for.
Is this possible in elasticsearch ?
Thanks
Vineeth
--
If text that should be highlighted is stored with the record, wouldn't it
be faster and simpler to highlight text during indexing?
On Monday, January 7, 2013 7:06:28 AM UTC-5, Vineeth Mohan wrote:
Hi ,
Following is a sample feed i have.
Feed - 1
{
"entity" : "YHOO",
"Content" : "Its a great day at yahoo (YHOO) today"
}
Feed - 2
{
"entity" : "GOOG",
"Content" : "Google(GOOG) is going to launch g+"
}
Now i want the highlighting output as
"Its a great day at yahoo (YHOO) today"
"Google(GOOG) is going to launch g+"
I want to highlight based on the field "entity" rather than a predefined
like YHOO where the latter will fail to give the output i am looking for.
Is this possible in elasticsearch ?
Thanks
Vineeth
--
That is a good suggetion , let me see where i can reach by that.
Thanks
Vineeth
On Tue, Jan 8, 2013 at 9:03 AM, Igor Motov imotov@gmail.com wrote:
If text that should be highlighted is stored with the record, wouldn't it
be faster and simpler to highlight text during indexing?
On Monday, January 7, 2013 7:06:28 AM UTC-5, Vineeth Mohan wrote:
Hi ,
Following is a sample feed i have.
Feed - 1
{
"entity" : "YHOO",
"Content" : "Its a great day at yahoo (YHOO) today"
}
Feed - 2
{
"entity" : "GOOG",
"Content" : "Google(GOOG) is going to launch g+"
}
Now i want the highlighting output as
"Its a great day at yahoo (YHOO) today"
"Google(GOOG) is going to launch g+"
I want to highlight based on the field "entity" rather than a predefined
like YHOO where the latter will fail to give the output i am looking for.
Is this possible in elasticsearch ?
Thanks
Vineeth
--
--
oops forgot to tell a important point.
Say i am tagging all the stuff i need to highlight while indexing , how am
i supposed to get the highlighted text while searching.
I will have to write a highlighter for myself by taking the entire source.
Thanks
Vineeth
On Tue, Jan 8, 2013 at 9:19 AM, Vineeth Mohan vineethmohan@algotree.comwrote:
That is a good suggetion , let me see where i can reach by that.
Thanks
Vineeth
On Tue, Jan 8, 2013 at 9:03 AM, Igor Motov imotov@gmail.com wrote:
If text that should be highlighted is stored with the record, wouldn't it
be faster and simpler to highlight text during indexing?
On Monday, January 7, 2013 7:06:28 AM UTC-5, Vineeth Mohan wrote:
Hi ,
Following is a sample feed i have.
Feed - 1
{
"entity" : "YHOO",
"Content" : "Its a great day at yahoo (YHOO) today"
}
Feed - 2
{
"entity" : "GOOG",
"Content" : "Google(GOOG) is going to launch g+"
}
Now i want the highlighting output as
"Its a great day at yahoo (YHOO) today"
"Google(GOOG) is going to launch g+"
I want to highlight based on the field "entity" rather than a predefined
like YHOO where the latter will fail to give the output i am looking for.
Is this possible in elasticsearch ?
Thanks
Vineeth
--
--