I am implementing search according to the steps described in Jobeet - search 17th chapter.
Now for example if I write a word in the textbox, then it looks for this word, and retrieves all the data that contains this word, but what I want is to retrieve only the exact word.
I have two fields in the table: 1) word 2) description
now if I write 'computer' in the textbox, it should look for the exact word 'computer' in the word field and retrieve its description.
Can you please help me with this??
I also modified this method:
static public function getForLuceneQuery($query)
$hits = self::getLuceneIndex()->find($query);
$pks = array();
foreach ($hits as $hit)
$pks = $hit->pk;
$criteria = new Criteria();
$criteria->add(self::ID, $pks, Criteria::IN);
and deleted the Criteria::IN so that it would take its default criteria EQUAL, but then it brings no result at all.