Questions tagged [zend-search-lucene]

Zend Search Lucene is a PHP library for creating and searching full text indexes using the Lucene index format.

Part of the Zend Framework, Zend Search Lucene allows the creation and searching of full text indexes in PHP. This goes above and beyond the full text search offered by MySQL.

Although Zend Search Lucene is part of the Zend Framework, it can also be used as a standalone library in other projects or with alternative frameworks such as Symfony.

193 questions
0
votes
1 answer

How to use ZendSearch in Zendframework 2 with autoloader without zend application

I'm using Zend Framework 2 in a project with that code: require_once APPPATH . "third_party/Zend/Loader/StandardAutoloader.php"; $loader = new StandardAutoloader(array('autoregister_zf' => true)); $loader->register(); How can I add ZendSearch…
Stefan Pöltl
  • 362
  • 3
  • 9
0
votes
3 answers

Symfony2 POST Request Required, Receiving GET Instead

I am trying to implement a search module with clean URLs. Something like www.website.com/search/searchterm. I have made a searchable index with EWZSearchBundle, so there is no database involved and therefore, no entity required. public function…
Aayush
  • 3,079
  • 10
  • 49
  • 71
0
votes
1 answer

How to(or Can I) delete the index file created by Zend_Search_Lucene

Is there any way by which I can delete the index file created by the Zend_Search_Lucene? If its not possible kindly suggest a method to delete the indexed data. I've tried it from the code. But failed. And when I tried to delete the index file from…
harry
  • 1,410
  • 3
  • 12
  • 31
0
votes
1 answer

Cannot retrieve value from the Zend_Search_Lucene index

$index = Zend_Search_Lucene::create($indexpath); $doc = Zend_Search_Lucene_Document_Html::loadHTMLFile ($targeturl); $title = $doc->title; $body = $doc->body; $doc->addField(Zend_Search_Lucene_Field::Text('title',…
harry
  • 1,410
  • 3
  • 12
  • 31
0
votes
1 answer

Zend_Search_Luncene handle Querys

iam trying to implement an Searchmachine into my site. Iam using Zend_Search_Lucene for this. The index is created like this : public function create($config, $create = true) { $this->_config = $config; // create a new index if…
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143
0
votes
2 answers

Zend_Search_Lucene massive - similar to ZF-5545 issue

EDIT: Solved with a hack for now. Added at line 473: if (isset($this->_termsFreqs[$termId][$docId])) { } This happens only when I'm searching for multiple words, e.g.: +word1 +word2 + word3 I get this massive error: Notice: Undefined offset: 2…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
0
votes
3 answers

Lucene Zend Fuzzy Match on Phrase instead of Single Word

I'm trying to use Zend Lucene for matching a query phrase, but I want a fuzzy match. At the moment, if I use PhraseQuery and search for "valentin rossi", (and in DB there is "valentino rossi") I have no results, because PhraseQuery searches for the…
0
votes
1 answer

when to call optimize function while using zend_search_lucene?

I am using zend_search_lucene for indexing documents and I am in dilemma on calling optimize function. Please let me know if optimize function is to be called after indexing or while searching. Thanks
Manoj H
  • 145
  • 2
  • 12
0
votes
2 answers

How to build functionality to search like google using zend_search_lucene?

I am using zend_search_lucene to search for keyword in documents. In one of the documents it has phrase This taught me a valuable lesson in time management as I still had to attend lectures and tutorials during the day. I enjoyed improving my…
Manojkumar
  • 1,351
  • 5
  • 35
  • 63
0
votes
1 answer

Using Zend Search Lucene with wildcard

I'm trying to wildcard a field using Zend search Lucene. $index = Zend_Search_Lucene::open("/data/my_index1"); $doc = new…
Gabriel Muñumel
  • 1,876
  • 6
  • 34
  • 57
0
votes
1 answer

Using Zend_Search_Lucene fopen fails .fnm files

I'm using Zend_Search_Lucene, in a standalone project not based on ZF. I index content successfully, and search them also, but the problem is that it cannot create the .fnm files here is the code I am…
Omar
  • 8,374
  • 8
  • 39
  • 50
0
votes
1 answer

Zend Lucene Search - Update index - Is it possible?

I am implementing Zend Lucene search in my website. Now I am doing my index updation by deleting the old index by its id and re creating it. But I would like to know whether it is possible to update the index instead of deleting and recreating it.…
Janaki
  • 185
  • 12
-2
votes
1 answer

In Lucene How to Index the word position of text file

I am new in lucene environment and using tutorial. 1- Indexer.java class is used to index the raw data so that we can make it searchable using lucene library. 2- LuceneConstants.java class is used to provide various constants to be used across…
1 2 3
12
13