Questions tagged [zend-lucene]

[tag:Zend-Lucene] is the lucene library of the Zend Framework, which is a powerful open source web application framework for developing PHP 5 web applications. The Zend Framework module is a Drupal API module that makes the framework accessible to other Drupal modules.

is the library of the Framework, which is a powerful open source web application framework for developing web applications. The Zend Framework module is a API module that makes the framework accessible to other Drupal modules.

44 questions
5
votes
2 answers

Zend Lucene Delete Document Issue

I am trying to delete a document using zend lucene. The following is my code $index = Zend_Search_Lucene::open('data/index'); foreach ($index->find('pk:' . $this->getId()) as $hit) { $index->delete($hit->id); } $index->commit(); When I…
Pramod Sivadas
  • 873
  • 2
  • 9
  • 28
4
votes
2 answers

Zend Lucene - tokenizing swedish chars

I use Zend Lucene to index swedish texts. The problem is that lucene tokenizes words at swedish chars åäö. For example the word "världens" becomes two words "v" and "ldens" in the index. Is there a way to add characters that zend lucene should…
Martin
  • 5,197
  • 11
  • 45
  • 60
3
votes
1 answer

Where are the index files of Zend Lucene?

the first time I indexed my data this way $index = new Zend_Search_Lucene('/tmp/search_index', true); This created a tmp/search_index folder in the public folder of my project. After I noticed there is something wrong with the index I just deleted…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
2
votes
2 answers

Zend Lucene - how to build an index for Calendar application?

I am building an app that has a Calendar in which users can annotate events. The Calendar is private to each user, that is, user A cannot see the events on user B's calendar. I would like to index the calendar events using Zend Lucene, but I'm…
pepe
  • 9,799
  • 25
  • 110
  • 188
2
votes
1 answer

Custom Search Engine on Zend Framework

We are building a Social Networking website and there are videos, user profiles and other details on the site. The site is developed using Zend Framework. It needs to develop a Site Search Engine feature on this site. It need to index all data in…
Web_Developer
  • 1,251
  • 2
  • 18
  • 34
2
votes
1 answer

Zend_Search_Lucene: UTF-8 madness

I hat some problems with Zend_Search_Lucene and non-english characters such as the german ÄÖÜ. My database returns UTF-8 formatted strings so I thought everything will work just fine. After having serious encoding problems I searched the web and…
Matthias
  • 193
  • 1
  • 9
2
votes
1 answer

Indexing Related Entities Using Zend Lucene

I have set up search in my application, but wish to expand it to index properties related in a one-to-many way. For instance, a person can have many usernames, so they have to be kept separate, as in the following example: person: id: ~ …
Druckles
  • 3,161
  • 2
  • 41
  • 65
2
votes
1 answer

CakePHP with Lucene

I am trying to implement Lucene with cakephp and following this guide http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/ Am getting this error ConnectionManager::loadDataSource - Unable to import DataSource class…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
2
votes
1 answer

Zend: index generation and the pros and cons of Zend_Search_Lucene

I've never came across an app/class like Zend Search Lucene before, as I've always queried my database. Zend_Search_Lucene operates with documents as atomic objects for indexing. A document is divided into named fields, and fields have…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
vote
1 answer

Searching only in undeleted documents using zend lucene

I am not new with zend lucene but I have a trouble with searching using it. I search in documents by numbers using below code: $term = new Zend_Search_Lucene_Index_Term($id, $idFieldName); $docIds = $index->termDocs($term); foreach ($docIds as $id)…
user771425
1
vote
1 answer

Lucene search stopped working with symfony

SOLVED Looks like working when you're very tired is not the same as working after you had a good night's sleep. The problem was with the files inside the prod.dev.index. They were missing. I recreated them and it worked. I'm using symfony 1.4 with…
Vika
  • 391
  • 5
  • 16
1
vote
1 answer

Getting content/excerpt from zend lucene search result

Im implementing zend-lucene search on my site, and I have indexing going well, and I can search. But the results just come back with the records that have a hit in order of score without the content (other than extra fields). Id like to be able to…
Adam Meyer
  • 1,505
  • 1
  • 19
  • 28
1
vote
1 answer

Does the Zend lucene search engine work with just Zend Optimizer?

I got it working locally but had to install the whole Zend framework, I am about to try to get this working on my unix server which has Zend Optimizer. I did php -m to check and was wondering if I can install Zend_Search_Lucene with Zend Optimizer…
iwek
  • 1,608
  • 5
  • 16
  • 31
1
vote
1 answer

Lucene: how to search EAV or 1:m?

I'm using Zend Lucene, but don't think the question is specific to that library. Say I want to provide fulltext search for a database of books. Assume following models: Model 1: TABLE: book - book_id - name TABLE: book_author - book_author_id -…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
1
vote
0 answers

Zend_Search_Lucence - Wildcard search is supported only for non-multiple word terms?

I am trying to implement Zend_Search_Lucene. I have implemented it with following condition: searchword* searchword case insensitive But some times I am getting error as "Wildcard search is supported only for non-multiple word terms" Below is my…
mymotherland
  • 7,968
  • 14
  • 65
  • 122
1
2 3