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

A few Lucene questions

I've been using Zend and need a search. The Zend docs aren't great so I had a couple questions that are easy to answer but not directly obvious. I'm using Lucene to search an SQL database How do I associate the index of my item with the text of…
Ethan
  • 5,660
  • 9
  • 44
  • 51
1
vote
1 answer

Zend_Lucene: How to combine multiple terms?

I am searching in an index using two different approaches, one is working, one is not (but should be from reading the documentation). I am wondering what my mistake is. Here is my first approach which works fine: $query = '+language:EN…
favo
  • 5,426
  • 9
  • 42
  • 61
1
vote
0 answers

How to search for all the content in the index using unindexed filed value like URLs using index of zend_search_lucene?

I am using zend_search_Lucene for indexing files and its contents. below is the code I am using: $index=$index = new Zend_Search_Lucene('/home/project/news4u/data/search_file/lucene.customer.index', new); $doc = new…
Manoj H
  • 145
  • 2
  • 12
1
vote
0 answers

when to call full optimize function in lucene search?

I am confused when to call the Full index optimization in Lucene search. I am using zend_search_lucene for it. // Open existing index $index = Zend_Search_Lucene::open('/data/my-index'); // Optimize index. $index->optimize(); Should I call this…
1
vote
1 answer

Zend Search Lucene - Searching specific field

I currently have Zend_Search_Lucene set up as the search engine on the project I am working on. It is working great at the default level (ie. searching all fields), however I have the need to now search a specific field. The reason for this is…
Mark Smith
  • 315
  • 2
  • 10
1
vote
2 answers

Zend search lucene DOCX date range query causes error "Range query boundary terms must be non-multiple word terms"

I am using Zend Search Lucene to index a number of DOCX files. $index = Zend_Search_Lucene::create($indexpath); Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive()); $doc =…
Andrew
  • 1,179
  • 8
  • 15
0
votes
1 answer

Return results when search parameters is null i Zend Lucene

I have multiple fields in search form.Every field could be empty. I build query like this: $search_title = trim($_POST["search_title"]); $search_skill = trim($_POST["search_skill"]); $search_company = trim($_POST["search_city"]); $search_country_id…
Goran Radovanovic
  • 103
  • 1
  • 1
  • 9
0
votes
1 answer

Problems getting MySql data into an index using Zend_Search_Lucene

Trying to use Zend_Search_Lucene to search a MySql database and display the results. Running the following code and can't figure out why I'm not getting any info into my index. Quite new with PHP, MySql and Zend but I've spent the last week trying…
ploebach
  • 1
  • 3
0
votes
2 answers

Zend Search Lucene not returning expected results

I've created a simple index using Zend_Search_Lucene for searching a list of company names, as I want to be able to offer a search which is more intelligent than a simple MySQL 'LIKE %query%'. I've used the code below, where 'companyname' is the…
pwaring
  • 3,032
  • 8
  • 30
  • 46
0
votes
1 answer

Lucene.net index in php

Is it possible to query an Index made with Lucene.NET through a PHP front-end? I've heard about Zend_Search_Lucene but not sure whether it can do the job or not.
Ali
  • 1,648
  • 2
  • 26
  • 48
0
votes
1 answer

Zend_Search_Lucene find phrase with special symbol

Sorry about my English but I have a problem: I making application for search with using Zend_Search_Lucene. I try find phrase "T-Mobile" but without anything answers. I know symbol "-" is a special. What I have to do cover this symbol "-" ? My code…
gaza
  • 1
  • 4
0
votes
1 answer

Zend Search Lucene Matches

OK so let's say I have a search query giving me back some Zend_Search_Lucene_Search_QueryHit objects containing the Zend_Search_Lucene_Document object matching the query. I have a small question about how to retrieve simply the name of the field…
Bill'o
  • 1
  • 1
0
votes
1 answer

Zend Search Lucene: Where do I put the code?

I have a CMS that I am adding Site Search functionality. The application uses the full Zend Framework MVC stack. At this point if seems that I should be creating/using a Search model. All models I've created up to this point have been based on…
Sonny
  • 8,204
  • 7
  • 63
  • 134
0
votes
2 answers

Zend_Lucene error

I'm new on using Zend framework. I wanted to use Zend_Lucene to achieve a small books engine on my web site. I downloaded the Full package and included it into my Netbeans 7 and it's went fine, then, I read the get started tutorial of the official…
Nadjib Mami
  • 5,736
  • 9
  • 37
  • 49
0
votes
2 answers

Use Lucene in PHP

I'm wondering how can I use Lucene for searching and indexing with PHP, Google said that I can do so just if It will be through Zend framework, this latter unlikely does not present in my dictionary, I use standard PHP, can I use Zend just for get…
Nadjib Mami
  • 5,736
  • 9
  • 37
  • 49