Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14282

/get handler doesn't return copied fields

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.4
    • None
    • search, SolrJ
    • None
    • SOLR 8.4.0, SOLRJ, Oracle Java 8 

    Description

      We are using /get handler to retrieve documents by id in our Java application (SolrJ)

      I found that copied fields are missing in documents returned by /get handler but  same documents returned by  query contain copied (by schema) fields.

      Attached documents:

      1. Integration test project archive
      2. Managed schema file for SOLR

      SOLR schema details:

      1. Unique field name "d_ida_s"
      2. Lowecase text type definition:
       <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
            <analyzer>
              <tokenizer class="solr.KeywordTokenizerFactory"/>
              <filter class="solr.LowerCaseFilterFactory" />
            </analyzer>
          </fieldType>

                3. Copy field instruction sample:

      <field name="ConcurrenceUserNameu_lca_s" type="lowercase" indexed="true" stored="true" multiValued="false"/>
      <copyField source="ConcurrenceUserNamea_s" dest="ConcurrenceUserNameu_lca_s" /> 
      
      
      
      

      ConcurrenceUserNamea_s is string type field and ConcurrenceUserNameu_lca_s is lower case text type field.

      Integration test uploads document to SOLR server and makes 2 requests: one using /get rest point to fetch document by id and one using query <unique id field name>:<document id value>.

      Document returned by /get rest, doesn't have copied fields while document returned by query, contains copied fields.

      Attachments

        1. SOLR-14282-test-update.patch
          5 kB
          Andrei Minin
        2. managed-schema.xml
          54 kB
          Andrei Minin
        3. copied_fields_test.zip
          87 kB
          Andrei Minin

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            aminin@intellective.com Andrei Minin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment