This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » Some questions about ezfind/solr in...
expandshrink

Some questions about ezfind/solr in 5.x...

Some questions about ezfind/solr in 5.x...

Monday 28 October 2013 11:40:14 am - 2 replies

I couldn't find much up to date information on this topic... I've reached a stage in the move from 4.x to 5.x where search needs to be rebuilt.

The installation uses ezfind with solr, and there is a (lightly) customized extension which extends ezfind.

The crucial thing with our searches is that "AsObjects" is always set to false- we rely purely on Solr to populate these pages.

So right now the new controller looks like this:

public function searchQueryAction(){        
$request = $this->getRequest();        
$search_query = $request->query->get( 'query' );        
$mySearchResults = $this->getLegacyKernel()->runCallback(           
function () use( $search_query )           
{                
return eZFunctionHandler::execute(                    
'ovumfind',                   
'search',                   
array(   'query'     => $search_query    )   ); <span style="font-size: 1.1em;">}</span>
      return $this->render('OvumSearchBundle::index.html.twig', array(       
      'search'  => $mySearchResults <span style="font-size: 1.1em;"> ));  </span>
  }
 

Is there a way to do this using the API?

I've read the docs on the SearchService... but I wasn't fully clear on how it works. If I use the SearchService, will that use ezfind/solr, or will it just crawl the database?

What's the overall status with regards to integrating ezfind/solr with 5.x? Right now we're running 5.1, but we will upgrade to 5.2 as soon as it launches.

Thanks

Modified on Monday 28 October 2013 11:45:14 am by Gareth Arnott

Tuesday 29 October 2013 2:39:38 pm

Hi,

 

Solr is not ready yet on in the new kernel, so fallback like you do is still valid, also in 5.2.

We plan to complete Solr implementation of search API next year, but as it does not use same document format as ezfind it will most likely not be recommended for installations relying on legacy for backend. So in other words it makes most sense when backend and other interfaces changing content uses new API, which will appear in a first initial version some time next year.

Best,
André 

Wednesday 30 October 2013 10:06:02 am

Hi André,

That's a really great answer, just what I was looking for!

Thanks

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from