Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8285

[Solr tool] The columns and results should be cleared

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC5
    • 4.0RC4
    • Plugin : Search
    • None

      The solr tool can be opened from different search tools.
      The result and columns should be cleared when it happens.
      How to reproduce

      • Do a search on search tool 1
      • Open the solr tool from this tool
      • Click on "search"
      • Do a search on search tool 2
      • Open the solr tool from this tool
        => The form in solr tool is correctly updated but the results and columns are still those of search tool 1

      This could leads to errors such as :

      java.lang.IllegalArgumentException: Search field with path 'codeUAI' refers to an unknown indexing field: codeUAI
      at org.ametys.cms.search.content.ContentSearchHelper.getIndexingModelSearchField(ContentSearchHelper.java:189)
      at org.ametys.cms.search.content.ContentSearchHelper.getSearchField(ContentSearchHelper.java:155)
      at org.ametys.cms.search.content.ContentSearcherFactory$SimpleContentSearcher.getSort(ContentSearcherFactory.java:536)
      at org.ametys.cms.search.content.ContentSearcherFactory$SimpleContentSearcher._searcher(ContentSearcherFactory.java:498)
      at org.ametys.cms.search.content.ContentSearcherFactory$SimpleContentSearcher.searchWithFacets(ContentSearcherFactory.java:493)
      at org.ametys.cms.search.solr.SolrQuerySearchAction.doSearch(SolrQuerySearchAction.java:141)
      at org.ametys.cms.search.cocoon.SearchAction.act(SearchAction.java:133)
      

          [CMS-8285] [Solr tool] The columns and results should be cleared

          It is better but there is a disturbing behavior :

          • when opening the Solr tool for the first time, default columns are visible : title, contributor, creation date, workflow, ...
          • when opening the Solr tool when it is already opened, there is no columns
            It would be better to reset the tool with the default columns as it is done at the first opening

          Laurence Aumeunier added a comment - It is better but there is a disturbing behavior : when opening the Solr tool for the first time, default columns are visible : title, contributor, creation date, workflow, ... when opening the Solr tool when it is already opened, there is no columns It would be better to reset the tool with the default columns as it is done at the first opening

            sprieul Simon Prieul (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: