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
1
vote
1 answer

Why Zend Lucene returns all hits if nothing is found?

I have this query: +document_type:client name:something to search and if something to search is not found the Zend Lucene returns all documents containing +document_type:client and I would like to return empty set. I've tried to add AND operator…
canni
  • 5,737
  • 9
  • 46
  • 68
1
vote
1 answer

Zend_lucene search with accents

I'm working on a search engine for a French website with Zend_Search_Lucene as a standalone component. Everything works well on my local webserver (WAMP) on windows, but the search with accented words (like: géographie) don't work on my production…
DoesNotCompute
  • 131
  • 1
  • 10
1
vote
1 answer

Symfony and Zend Advanced Search Lucene

I use Symfony 1.4.11. I added search to my project, like in Jobeet tutorial. But I need to also make advanced search. For example, the user can іудусе "county" and "category". I make form and I read this tutorial. I also found this. But I do not now…
denys281
  • 2,004
  • 2
  • 19
  • 38
1
vote
0 answers

Zend Search Lucene searching whole product description

What is below is my code of search engine on the website. Right now is only searching what is refered as ProductName and ProductNumber. I didn't know what need to be changed to searching whole ProductDescription Here is Search.php file protected…
lilpri
  • 19
  • 2
1
vote
1 answer

Indexing Adds/Changes not working using Lucene in Zend Framework

I am pretty new to programming and definitely to Zend/Lucene indexing. From what I can tell, though, my code is correct. I feel like I may be overlooking a step or something trying to upload changes and adds to the database so that they appear in…
1
vote
1 answer

Zend Lucene - Wildcard search based off of Fuzzy search

Goal: execute fuzzy search, then wildcard search with those similar terms I have a boolean query in place at the moment, shown below: $query = new Zend_Search_Lucene_Search_Query_Boolean(); $pattern = new…
Matt Shultz
  • 312
  • 3
  • 10
1
vote
0 answers

reverse phrase search in zend lucene

Basically I have two tables Location and city, The city has city_name and country_code. location_name field from location table has locations. I want to find the location country. My table structure. City table City country_code city_name US …
Gowri
  • 16,587
  • 26
  • 100
  • 160
1
vote
2 answers

Zend search integration in native PHP project

I would like to integrate zend search into a native PHP project. I am getting all kinds of include errors. I have done some research and it seems that there are a lot old articles about it written before zf2. With zf1 it used to be straight forward.…
thedethfox
  • 1,651
  • 2
  • 20
  • 38
0
votes
1 answer

Problems with Zend_Lucene when using Routes

I have implemented Zend_Lucene in my first Zend Framework Project, but since I have implemented Routes the Search Results does not seem to work anymore. In my Search Result view, I have changed the URL to the Postdetails to use the Route:
Luka
  • 748
  • 2
  • 9
  • 36
0
votes
1 answer

Search by number in zend lucene

I read some articles about searching in indexes by numbers, but it does not work for me yet. more:: i need to search in my documents by number but it does not work. i create the docuemnt: $doc1->addField(Zend_Search_Lucene_Field::UnIndexed('id',…
user771425
0
votes
1 answer

How does Zend Lucene handle numeric range searches?

I have this fields in the index id name genders ages 1 "John Doe and Co." "male male" "18 20" 2 'Mr. and Mrs. Joe Dee' "male female" "25 27" and here is the code to retrieve both rows $min_age =…
developarvin
  • 4,940
  • 12
  • 54
  • 100
0
votes
1 answer

Zend Lucene and range search on a field with multiple values

Say my index contains documents with a field called "ages". Example entries for "ages" field: 25 24, 28 25, 31 How would I query this so that I get all the documents whose fields contain ages between 20 and 30? I'm using Zend Lucene.
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
0
votes
2 answers

Conditions in Zend Lucene

We have a location based service in our company. The content can be searched through mobiles precisely for the user's location. This search consist of distance search using the following formula ((ACOS(SIN($lat * PI() / 180) * SIN(lat * PI() / 180)…
Karthik
  • 1,091
  • 1
  • 13
  • 36
0
votes
2 answers

PHP Zend Lucene Search Query with multiple criteria fail

Zend Lucene Search Document Lucene Document pk:Keyword category_id:Keyword title:UnStored description:UnStored This is my string query "java lucene AND +category_id:7". Result here: Array ( [0] => Array ( …
phapsu
  • 21
  • 4
0
votes
1 answer

Symfony search form

I use symfony 1.4.12 with Zend Lucene. And I make custom search, I have field like category, country...I create module and I have MysearchSucess.php and there I write hardcode, like :