ZF-1216: Query language needs mechanisms to qreate queries for non-tokenized fields

Issue Type: Improvement Created: 2007-04-06T16:29:41.000+0000 Last Updated: 2009-03-26T09:51:28.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Alexander Veremyev (alexander) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: - ZF-623



Non-tokenized but indexed fields (ex. keywords) stores data "as is". So '' is stored as ''

If we try to find this value: "", query parser will break it into three different terms: 'url:framework', 'url:zend' and 'url:com'. No one of these terms matches ''

So we get empty result set for this query.

There is no way to search through non-tokenized fields with current query language now. It's possible with API methods:

<pre class="highlight">
$term = new Zend_Search_Lucene_Index_Term('', 'url')
$query = new Zend_Search_Lucene_Search_Query_Term($term);

$hits = $index->find($query);


Posted by Alexander Veremyev (alexander) on 2007-05-25T09:48:44.000+0000

Postponed to post-1.0 period

Posted by Alexander Veremyev (alexander) on 2009-03-26T09:51:27.000+0000


Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.