GithubHelp home page GithubHelp logo

ext-solrfluidgrouping's Introduction

Apache Solr for TYPO3 - Grouping for Fluid templating

Build Status

About

This addon provides grouping for the fluid templating in EXT:solr.

Caution: solrfluidgrouping is part of solr 12+, so there will be no release for TYPO3 12.

How to run the UnitTests

First you need to set some environment variables and boostrap the system with the bootstrap script (you only need to do this once), the bootstrapper will ask you for some variables (TYPO3 version, EXT:solr version, db host, db user and db passwort) that are needed for the integration tests:

chmod u+x ./Build/Test/*.sh
source ./Build/Test/bootstrap.sh --local

Now you can run the complete test suite:

./Build/Test/cibuild.sh

ext-solrfluidgrouping's People

Contributors

3l73 avatar dkd-friedrich avatar dkd-kaehm avatar lukasniestroj avatar mabahe avatar rafaelka avatar timohund avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ext-solrfluidgrouping's Issues

[TASK] Change configuration files to TYPO3 file extensions

What should be done in the scope of this task?

Currently the file extension txt is in use for TypoScript configuration.

Following Changes should be done:

  1. Change the file extension for TypoScript from txt into typoscript

The old files should be in place and include the new file names.

As a result, editor settings can applied to configuration files without effecting other files.

[BUG] GroupedResultParser produces warning

#1476107295: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /app/web/typo3conf/ext/solrfluidgrouping/Classes/Domain/Search/ResultSet/Grouping/Parser/GroupedResultParser.php line 277

[RELEASE] Release 11.0.1

What should be done in the scope of this task?

Bug fix release 11.0.1 for TYPO3 11.5 must be released.

[BUG] Fatal error in GroupedResultParser with incorrect query string

Found following issue in the log.

TypeError
Argument 3 passed to ApacheSolrForTypo3\Solrfluidgrouping\Domain\Search\ResultSet\Grouping\Parser\GroupedResultParser::parseGroupDependingOnType() must be an instance of stdClass, null given, called in typo3conf/ext/solrfluidgrouping/Classes/Domain/Search/ResultSet/Grouping/Parser/GroupedResultParser.php on line 91

To Reproduce
The issue was caused by an incorrect character in the filter query string. Thus the response from the solr server could not be parsed into a stdClass object. This was the error:
<h2>HTTP ERROR 500 org.apache.solr.common.SolrException: URLDecoder: Invalid character encoding detected after position 749 of query string / form data (while parsing as UTF-8)</h2>

Used versions (please complete the following information):

  • TYPO3 Version: [e.g. 10.4.26]
  • EXT:solr Version: [e.g. 11.1.1]
  • EXT:solrfluidgrouping Version: [e.g. 10.0.0]
  • Used Apache Solr Version: [e.g. 8.9.0]
  • PHP Version: [e.g. 7.4.0]

[TASK] Unit test is failing

ApacheSolrForTypo3\Solrfluidgrouping\Tests\Domain\Search\ResultSet\SearchResultSetServiceTest::canCreateGroups
TypeError: Argument 3 passed to ApacheSolrForTypo3\Solr\Domain\Search\Query\QueryBuilder::buildSearchQuery() must be of the type array, null given, called in /home/travis/build/TYPO3-Solr/ext-solrfluidgrouping/.Build/Web/typo3conf/ext/solr/Classes/Domain/Search/ResultSet/SearchResultSetService.php on line 185

[BUG] Exception groupingValue is null

If the grouping field of a record has an empty value it is not indexed by default by EXT:Solr.
This can lead to an exception and therefore none of the found record groups is displayed.

To Reproduce:

  1. Create a index configuration for any record
  2. add a grouping configuration using one of the indexed fields (e.g. title)
  3. Store multiple records, but store one without an empty string on grouping field (e.g. title)
  4. start Indexing
  5. once the records are indexed and you try to search for the records an exception is thrown

Expected behavior:
No exception is thrown and this invalid group is removed from the searchresult list.
(The error might also be logged)

Used versions:

  • TYPO3 Version: 11.5
  • EXT:solr Version: 11.5
  • EXT:solrfluidgrouping Version: 11.0
  • PHP Version: 8.0

Stacktrace:
image

Should i open a pull request or do you think this is an error due to missconfiguration?

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.