SilverStripe solr Search

autosuggest.php

Example autosuggest code. This code serves as an example on how to enable suggested queries.

There is no guarantee it will actually fully work.

It is required to update the request values to your own Solr location and core, before using this example.

Tags
author

Simon Firesphere Erkelens; Marco Sheepy Hermo

copyright

Copyright (c) 2018 - now() Firesphere & Sheepy

Table of Contents

Functions

getSuggestion()  : mixed
Get a suggestion from Solr

Functions

getSuggestion()

Get a suggestion from Solr

getSuggestion() : mixed

        
On this page

Search results