Giter VIP home page Giter VIP logo

solr's Introduction

Solr

This module makes job entities searchable with Solr. In addition it enables facet search.

Build status:

Build Status Coverage Status

Requirements

  • running YAWIK
  • running Solr Server >= 8

Installation

Using composer

composer require yawik/solr

Documentation

Documentation is build via:

mkdocs gh-deploy --remote-branch gh-pages

https://yawik.github.io/Solr/

Example

http://jobs.yawik.org

Licence

MITf

solr's People

Contributors

cbleek avatar fedys avatar kilip avatar scrutinizer-auto-fixer avatar stefanied avatar tisie avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fedys stefanied

solr's Issues

Jobs are not deleted from solr, when running: bin/console jobs expire

10 jobs found, which have to expire ...
Done                 [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->] 100%             

at least on jobs.yawik.org

Make Sort order configurable

Currently, the sort order is hardcoded descending by date.

We want to make this configurable. For example this would make the

< $randString = rand(1,100);
< $query->addSortField('random'.$randString, SolrQuery::ORDER_DESC);

Clean UP the solr Schema

The current solr schema has a couple of redundant fields. This issue collects things, which are related to cleanup the schema.

One question, which comes to my mind.

  • Is JTS is really needed?

Frage zu Facet Queries

Hallo,

ist es momentan möglich Facet Queries zu nutzen?

Ich hatte folgendes Szenario:
Ich wollte neben den Standard-Filtern einen Filter haben, der die Jobs nach dem publishDate filtert. Dazu sollen aber Filterqueries genutzt werden. In meinem Fall sieht es z.b. so aus:

$query->addFacetQuery('datePublishStart:[NOW-1DAY TO NOW]') // 24h
            ->addFacetQuery('datePublishStart:[NOW-3DAYS TO NOW]') // 3 Tage
            ->addFacetQuery('datePublishStart:[NOW-7DAYS TO NOW]') // 7 Tage
            ->addFacetQuery('datePublishStart:[NOW-30DAYS TO NOW]'); // 30 Tage

Ich habe als Lösung die Klasse \Solr\Facets erweitert, um auch Facet Queries auszulesen.

Facets Fields können ja momentan über die Konfigurationsdatei definiert werden. Ist das für Queries auch geplant?

VG Stefanie Drost

Fetching HTML source if no description is given

@fedys @TiSiE

adding a jobosting without a fulltext to solr makes no sense. So what can we do, if a job is activated and no html is given.

My idea is to simply fetch the html. If fetching fails, the job is not inserted.

Can we/should we do this in the solr module?

Keep in mind that all the time consuming tasks like fetching pages, inserting into solr, sending mails... should be moved into some queing system

Add configurable default filter queries

It should be possible to configure default filter queries which are used for every search request regardless of user input via the search form.

Solr provides the ability to define such filter queries so we should use this.
All we have to do is:

  • Provide options to configure filter queries
  • Use these options to set up Solr filter queries prior to send the search query.
  • tests

Do not optimize after commit

It has been shown that an index job takes a long time, if an optimize is done after each commit

Let's remove the optimize

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.