Uploaded image for project: 'Search and Discovery'
  1. Search and Discovery
  2. SEARCH-2132

InsightEngine builds virtual "alfresco" table calling IndexSearcher methods several times

    Details

    • Type: Task
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Search Services 2.0
    • Labels:
      None

      Description

      Each time a SQL query is issued, IE builds an "alfresco" virtual table and populates the fields catalog from the several sources (Solr schema, Inverted Index, shared properties, static set).

      Some of those sources (i.e. Solr schema and inverted index) require a SolrSearcher instance to be used and queried. Right now, there are different methods, each of them targets a specific fields source and issues a request to the index searcher).

      We could improve that by limiting the number of IndexSearcher references and additionally reuse the same getSchema call.    

      Acceptance Criteria

      • Refactor SolrSchema class to reuse as much as possible the SolrIndexSearcher::getSchema across methods
      • Add a test to verify the virtual table before the refactoring (integration test)

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                agazzarini Andrea Gazzarini
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel