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
2 answers

Zend_Search_Lucen - [function.fopen]: failed to open stream: Permission denied

I´m trying to follow the Zend Lucene Search Tutorial from Ganesh H S and it´s giving me an error. Message: fopen(/home/zerego/application/lucene-data/read.lock.file) [function.fopen]: failed to open stream: Permission denied And if i click in…
Jose Rego
  • 380
  • 5
  • 10
0
votes
4 answers

PHP Zend Framework: Internal Server Error 500 on localhost when trying to run "Lucene.php" on browser

I am running windows 7 and I have a fresh install of Zend framework. On a new php file called 'search.php' I am trying to build a search application using Zend_Search_Lucene with the first line being:
Benny Tjia
  • 4,853
  • 10
  • 39
  • 48
0
votes
1 answer

Zend_search_lucene limit result "length"

I'm using lunece to find in some file a string or a code number. I would like to know how can i "limit" the results content. Example: i was searching for le string 'DC' in a long text (about 500 char). I would like to have the 20 char before and 20…
Simone
  • 1
  • 1
0
votes
1 answer

Good search solution for Zend Framework + Doctrine + MySQL?

I've looked into Doctrine's built-in search, MySQL myisam fulltext search, Zend_Lucene, and sphinx - but all the nuances and implementation details are making it hard to sort out for me, given that I don't have experience with anything other than…
Kyle Lowry
  • 1,246
  • 10
  • 14
0
votes
1 answer

Decimal Range Search Query Over LUCENE FULLTEXT INDEX (Orientdb / Lucene)

I store the all kind of value(Integer, Flot, Date, Text, etc...) in a column "Custom" which is a datatype of STRING. How to do an Integer range search query on column "custom" using Lucene? something like:- select * from CustomTable where Custom:[1…
0
votes
1 answer

lucene 3.0.3 | searching problem with *.docx file

I am creating index with help of StandardAnalyzer for *.docx file it's fine. But at the time of searching it do not gives result for these *.docx file. any help or suggestion will be appreciated!!!
ranjit
  • 51
  • 1
  • 9
0
votes
1 answer

Zend lucene - search within range

I have the following code to create the Zend Lucene index $doc->addField(Zend_Search_Lucene_Field::UnStored('keywords', $job->getKeywords())); $doc->addField(Zend_Search_Lucene_Field::UnStored('title', $job->getTitle())); …
Optimus
  • 1,703
  • 4
  • 22
  • 41
0
votes
1 answer

Zend_Search_Lucene Limiting the Result Set

Is there a way to limit the Result Set by the best N results? If I use Zend_Search_lucene::setResultSetLimit(10) I will only get any 10 results and not the 10 best results according to my sorting declaration.
derphil
  • 385
  • 6
  • 25
0
votes
1 answer

Adding "PAGINATION" in Zend Lucene Search result in codeigniter

Hey anyone, i try integrating zend lucene search system with codeigniter. But the problem is how i can formatting the search result in pagination in Codeigniter below is the search code : $query//keyword to search $index =…
0
votes
1 answer

How can I improve the performance of this Zend_Search_Lucene query?

How can I improve the query as seen below? My index is fully optimized and all fields are unstored except for item_id which is a keyword field. The problem is in the "if ($auth) {" section. If this section is removed search times are always under 1…
NightWatchman
  • 1,217
  • 5
  • 17
  • 25
0
votes
2 answers

How to get whole index in ZEND Lucene?

Hi I am looking for a way to get the whole index if my query is nothing. My lucene is a picture of my database without some unwanted content, like expired annonces... So I would like to use only lucene to get annonces, and for that I need a way to…
Faboo03
  • 43
  • 6
0
votes
0 answers

Yii2 basic use Zend Framework 1 library

I have successfully using Zend Framework 1 library in CodeIgniter This is how I do it copy the folder Zend in Zend framework's path/library paste in CodeIgniter's system/libraries in CodeIgniter's system/libraries, add Zend.php with this…
keronconk
  • 359
  • 2
  • 10
0
votes
3 answers

removing Duplicate documents from zend lucene indexes

Actually my way of creating and optimizing indexes is that i create and optimize a chunk of records each time and not convert all in one go. Now The problem that i am facing is that i get duplicate docs/records created in the index. I need to know…
0
votes
1 answer

How to check Lucene version in Zend Framework?

My java code in eclipse 4.2 is generating an index using lucene 2.9.1. I am using Zend framework 1.12.20 with PHP 7.1 at front end to do search and getting below error. Fatal error: Uncaught Zend_Search_Lucene_Exception: Unsupported segments file…
0
votes
1 answer

Zend_Lucene and wilcard operator weirdness

A quick summary of my problem, the wildcard operator doesn't seem to return the result I am expecting. I am testing this against some Keyword field. Here come a sample showing the issue include 'Zend/Loader/Autoloader.php'; $autoloader =…
RageZ
  • 26,800
  • 12
  • 67
  • 76