I'm implementing Search capabilities in my Node.js application as part of to enable text search I want to have some fields similar to
{ title : "this is fun" ,
_keywords : [ "this" , "is" , "fun" ]
}
How to get _keywords fields as shown from Node.Js? Is there any way to have _keywords corresponding to title as shown above.
Well, as far as I could make out from your question, I guess you wish to split the title into _keywords.
You can achieve this in node.js by doing something like.
_keywords = title.split(" ");