Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullhorn Rest Client + Lucene Query Builder = Awesome #7

Closed
drmmr763 opened this issue Jul 8, 2019 · 0 comments
Closed

Bullhorn Rest Client + Lucene Query Builder = Awesome #7

drmmr763 opened this issue Jul 8, 2019 · 0 comments

Comments

@drmmr763
Copy link
Contributor

drmmr763 commented Jul 8, 2019

Hi All

Just wanted to share my personal experience using this package in conjunction with a query builder package:

https://github.com/minimalcode-org/search

I combined both these into a laravel project as a service and was able to get some great results:

// build a query:
$queryBuilder = Criteria::where('email')->in($emails);
$queryBuilder->orWhere('phone')->in($phones);
// make a request
$response = $client->request(
                'POST',
                'search/Candidate',
                [
                    'body' => json_encode([
                        'query'  => $queryBuilder->getQuery(),
                        'fields' => 'id,firstName,lastName,email,phone'
                    ]),
                ]
            );

Not sure the overall vision for this package, but it might be interesting to make the query builder a dependency. If not totally understand and I'm happy to handle that all in my project.

Hope this helps someone out there. Cheers!

@drmmr763 drmmr763 closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant