mhermo

@nightjarnz Agree, definitely getting more attraction now than 2 years ago, when I did a proof of concept. 👍 ^^

👍 (2)
nightjarnz

@mhermo has worked with algolia before, this could be interesting :)

wilr

Been using algolia for a bunch of cwp customers lately because they got fed up with Solr, finally got round to tidying up project specific stuff and made something generic / reusable for it (https://github.com/wilr/silverstripe-algolia) doesn’t define any of the front end code as that’s so specific but the indexing side this should make life easier

Show 1 attachment(s)
wilr/silverstripe-algolia

Handles indexing Silverstripe Pages into Algolia and providing results

Hide attachment content
🎉 (5) 👍 (1)
MichalKleiner

but remember that CWP doesn’t allow solrconfig.xml changes

MichalKleiner

you update the templates path and it replaces it

jules

i.e. I need to modify solrconfig.xml, but committing the schema.xml file? that seems problematic...

jules

quick question. If I use

  1. Solr::configure_server([
  2. 'extraspath' => BASE_PATH . '/app/solr/extras'
  3. ]);

Does this add to configuration or replace it? Do I need to add all the files from .solr/conf or just the ones I want to customise?

Firesphere

It can't group on the same thing, as they aren't he same thing

MichalKleiner

possibly, yes… these are different fields, I meant the OR logic for AND groups on the same field, but this would achieve a similar thing

Firesphere

@MichalKleiner Just a quick mock-up, is this what you'd expect?

  1. /**
  2.   * Format:
  3.   * SiteTree::class => [
  4.   * 'BaseClass' => SiteTree::class,
  5.   * 'Field' => 'ChannelID',
  6.   * 'Title' => 'Channel'
  7.   * ],
  8.   * Object::class => [
  9.   * 'BaseClass' => Object::class,
  10.   * 'Field' => 'Relation.ID',
  11.   * 'Title' => 'Relation'
  12.   * ],
  13.   *
  14.   * The facets will be applied as "OR" separated groups of filters. Compared to default
  15.   * facets, that will combine all facets in to a single "AND" query.
  16.   *
  17.   * @var array
  18.   */
  19. protected $orFacetFields = [];