Giter Site home page Giter Site logo

Comments (7)

igorw avatar igorw commented on June 3, 2024

The feature/nextgen branch of solarium supports it, but there is no release yet.

I don't see why we should not support those parameters (username and password) anyway, so that they can be used with an unstable solarium version.

from nelmiosolariumbundle.

geekhack avatar geekhack commented on June 3, 2024

Am new in using this bundle and got stack after installing it..here is what i have for my searchAction()
public function searchAction()
{
$form=$this->createFormBuilder()
->add('search', 'text')
->getForm();

    $request = $this->getRequest();

    if ($request->getMethod() == 'POST')
     {
        $form->bindRequest($request);

       if ($form->isValid()) 
        {
             $searchword=$form->get('search')->getData();               
             $client = $this->get('solarium.client');
             $select = $client->createSelect();
             $select->setQuery($searchword);
             $results = $client->select($select);


        }         

    }
    //render the search form
     return $this->render('AcmeDemoBundle:Demo:search.html.twig',array(
                                       'form'=>$form->createView()
                   ));

}
but am getting a http 404 error yet what I was searching was there..what could be the issue?

from nelmiosolariumbundle.

shevaton7 avatar shevaton7 commented on June 3, 2024

Hi,

First I want to say thank you for your bundle. is it possible to get a concrete example with how to index field of databases ? because when Bundle mec search how it knows tables it has to search ? I found on documentation but not entirely clear...

Thank you for all

from nelmiosolariumbundle.

wiistriker avatar wiistriker commented on June 3, 2024

It is just a suggestion, but maybe you will be able to pass username and password directly in host param?

...
host: user:pass@localhost

from nelmiosolariumbundle.

ajaypatelbardoli avatar ajaypatelbardoli commented on June 3, 2024

+1 for this features

from nelmiosolariumbundle.

bmeynell avatar bmeynell commented on June 3, 2024

This functionality is already implemented in this bundle. It's just not documented. See https://github.com/nelmio/NelmioSolariumBundle/blob/master/DependencyInjection/Configuration.php#L49

from nelmiosolariumbundle.

Seldaek avatar Seldaek commented on June 3, 2024

Oh yeah this is a very old issue. Just use user:pass@host in the dsn property instead of specifying a host directly.

from nelmiosolariumbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.