GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - willkalming/laravel-scout-solr: A Laravel Scout Engine for Apache Solr

BranchesTags
Open more actions menu

Latest commit

 

History

179 Commits
179 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
config
config
 
 
docs
docs
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.styleci.yml
.styleci.yml
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
deploy.sh
deploy.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
phpdoc.xml
phpdoc.xml
 
 
psalm.xml
psalm.xml
 
 
ruleset.xml
ruleset.xml
 
 

Repository files navigation

Solr Engine for Scout

Latest Stable Version Latest Unstable Version Total Downloads

This engine provides the interface between Laravel Scout and a Solr instance.

Installation

composer require pxslip/laravel-scout-solr

For Laravel <= 5.4 the service provider should be registered in config/app.php

'providers' => [
    // ...other providers
    Scout\Solr\ScoutSolrServiceProvider::class,
]

Usage

As the engine uses some functionality that is not fully compatible with Laravel\Scout\Builder and Laravel\Scout\Searchable you will need to use the Scout\Solr\Builder and Scout\Solr\Searchable versions instead:

use Scout\Solr\Searchable;

class MyModel extends Model {
    use Searchable;
    ...
}

// and then to perform a search

MyModel::where(...)
    ->orWhere(...)
    ->facetField(...)

TO DO

  • Add bindings instead of just passing the string for better escaping
  • Add nested querying to Builder
  • Add nested querying to ScoutEngine
  • Write tests

About

A Laravel Scout Engine for Apache Solr

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

19 stars

Watchers

0 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.