Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 194491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:36:00+00:00 2026-05-11T16:36:00+00:00

I am using Zend_Search_Lucene to implement site search. I created separate indices for different

  • 0

I am using Zend_Search_Lucene to implement site search. I created separate indices for different data types (e.g. one for users, one for posts etc). The results are similarly divided by data type however there is an ‘all’ option which should show a combination of the different result types. Is it possible to search across the different indices at once? or do i have to index everything in an all index?

Update: The readme for ZF 1.8 suggests that it’s now possible to do in ZF 1.8 but I’ve been unable to track down where this is at in the documentation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:36:00+00:00Added an answer on May 11, 2026 at 4:36 pm

    So after some research you have to use Zend_Search_Lucene_Interface_MultiSearcher. I don’t see any mention of it in the documentation as of this writing but if you look at the actual class in ZF 1.8 it’s straightforward t use

    $index = new Zend_Search_Lucene_Interface_MultiSearcher();
    $index->addIndex(Zend_Search_Lucene::open('search/index1'));
    $index->addIndex(Zend_Search_Lucene::open('search/index2'));
    $index->find('someSearchQuery');
    

    NB it doesn’t follow PEAR syntax so won’w work with Zend_Loader::loadClass

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Zend_Search_Lucene for full-text search of records in several different tables in my
iam trying to implement an Searchmachine into my site. Iam using Zend_Search_Lucene for this.
I am using Zend Search Lucene and if the user types in Vibrant Bouquet
I've created a simple index using Zend_Search_Lucene for searching a list of company names,
I am using Zend_Search_Lucene, to index my website. My site indexes are not entirely
I'm using Zend_Search_Lucene for my search engine. Sadly it is missing an implementation of
I'm using Zend_Search_Lucene, the PHP port of Java Lucene. I currently have some code
I've built a search index using the PHP Zend Framework Search (based on Lucene).
I've been using Zend and need a search. The Zend docs aren't great so
Using Zend Framework, I've created a Model to insert a record into a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.