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
2
votes
1 answer

Lucene: Loading Index files while searching?

Can anyone explain how index files are loaded in memory while searching? Is the whole file (fnm, tis, fdt etc) loaded at once or in chunks? How individual segments are loaded and in which order? How to encrypt Lucene index?
2
votes
1 answer

Zend_Search_Lucene count() failed after addDocument() in another place

in my bootstrap: protected function _initLucene() { Zend_Search_Lucene::create(APPLICATION_PATH . '/lucene')->setDefaultSearchField('userName'); } in my data mapper: public function test1() { $lucene = Zend_Search_Lucene::open(APPLICATION_PATH .…
2
votes
3 answers

How to invoke method by name?

I want to pass a row object to a function that uses the configuration information stored in the row to build a Zend Search Lucene Document and add it to my index. The information stored looks like this: protected $_index = array( 'url' =>…
Sonny
  • 8,204
  • 7
  • 63
  • 134
2
votes
1 answer

Zend Search Lucene Document - Conditional Searching

I have a CMS that I want to add search functionality to. There are items that I want to index, but want to exclude from the results conditionally. For example, there is content that is in a member's only area that I want to include in the results if…
Sonny
  • 8,204
  • 7
  • 63
  • 134
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
2 answers

Zend_Search_Lucene implementation with Symfony2 returning empty result

I have an implementation of Zend_Search_Lucene within a Symfony2 application. I am using Zend 1.11. The index seems to be being created, I have several files…
Patrick
  • 358
  • 6
  • 20
2
votes
1 answer

How to save multiple integer values within a Zend search lucene keyword?

I would like to add a lucene layer on my database model. Everything works fine and I use several keywords beside the main content which is filled by some HTML data. e.g. $doc =…
Marc
  • 377
  • 7
  • 19
2
votes
1 answer

Zend lucene - searching in text files

I am currently working on a personal project where I am reading scanned documents using tesseract and storing the content as text files. I keep both the text files and the jpeg files in my web's directory and maintain the link between them using…
Oscar
  • 21
  • 1
2
votes
0 answers

Zend Search Lucene numeric wildcard issue

I am using an implementation of Zend Lucene Search for a project, and like many beginners realized straight off that numbers weren't indexed. So with some searching, I figured out how to change the analyzer to include numbers…
Soyo
  • 141
  • 2
  • 11
2
votes
2 answers

Zend lucene and MySql database

I have a PHP web site with data stored in a MySql database. (approximately 50 000 articles) I want to improve the results of the full text search functionality and stop using just a simple LIKE query. I find Zend_Search_Lucene from the Zend…
fluminis
  • 3,575
  • 4
  • 34
  • 47
2
votes
2 answers

Which way you recommend zend lucene search with php or lucene itself and port with php?

We are in development of a classifieds website, which you might already know that we need a really good search engine. Filtering menu on the left side is a MUST in our project. Anyway, I am asking if we should use zend lucene or we should install…
met.in
  • 173
  • 1
  • 9
2
votes
1 answer

Remove Stopwords before indexing or after retrieving using zend-search-lucene

I just started using zend-search-lucene,i need suggestion how to remove the stop words while indexing or while retrieving the search results.
user213559
2
votes
1 answer

Efficient, database-independent PHP implementation of geospatial index? Zend_Search_Lucene extension?

I'm storing lat/lon information in a MySQL database, which doesn't have great geospatial search support. I'm already maintaining a separate Lucene text search index for efficient full text search, so I looked at the geospatial extension for Lucene;…
deceze
  • 510,633
  • 85
  • 743
  • 889
2
votes
1 answer

Zend lucene content field

I have indexed a site using Nutch and now I am searching the index using the Zend Lucene library. I've actually pulled the Zend libraries into Codeigniter but it is all Zend doing the work. I can display the title, score and url fine but I can't…
ianckc
  • 1,716
  • 5
  • 18
  • 33
2
votes
0 answers

Why is my search on 2 fields in Lucene (zend) failing?

So, I have two fields I am indexing: | NAME | TYPE | ------------------------------------- |Texas Steak | Restaurant | |Bone Digs Restaurant | Restaurant | |Rain Sushi | Restaurant | |Brazil Steakhouse | Restaurant | |Alfredos | Restaurant…
DWLabs
  • 31
  • 3
1 2
3
12 13