lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Solr Child="true" flag in version 6.4
Date Tue, 18 Apr 2017 09:16:13 GMT
You say you are trying to use child=true, but the definition you gave
does not actually have one. Is it possible you tested with it once,
but then did not keep it for later tests accidentally?

Also, if that`s your first time working with nested entities, the
query returns parents and children all together, so it looks like a
flat list even when it is indexed correctly as nested. It may help to
have child document transformer at least during the initial debug:
https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents#TransformingResultDocuments-[child]-ChildDocTransformerFactory

Regards,
   Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 18 April 2017 at 12:09, donjose <donjose.eluvathingal@socgen.com> wrote:
> Verbose debug output
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 109
>   },
>   "initArgs": [
>     "defaults",
>     [
>       "config",
>       "data-config.xml"
>     ]
>   ],
>   "command": "full-import",
>   "mode": "debug",
>   "documents": [
>     {
>       "category": [
>         "Shirt"
>       ],
>       "id": [
>         "1"
>       ],
>       "_version_": [
>         1565006509454131200
>       ],
>       "_root_": [
>         "1"
>       ]
>     }
>   ],
>   "verbose-output": [
>     "entity:ASSETCATEGORY",
>     [
>       "document#1",
>       [
>         "query",
>         "SELECT id, category from category",
>         "time-taken",
>         "0:0:0.34",
>         null,
>         "----------- row #1-------------",
>         "CATEGORY",
>         "Shirt",
>         "ID",
>         "1",
>         null,
>         "---------------------------------------------",
>         "entity:Values",
>         [
>           "query",
>           "SELECT id,catsize,color from categoryvalues where categoryid =
> 1",
>           "time-taken",
>           "0:0:0.22",
>           null,
>           "----------- row #1-------------",
>           "CATSIZE",
>           "XL",
>           "COLOR",
>           "Red",
>           "ID",
>           "1",
>           null,
>           "---------------------------------------------",
>           null,
>           "----------- row #2-------------",
>           "CATSIZE",
>           "XL",
>           "COLOR",
>           "Blue",
>           "ID",
>           "2",
>           null,
>           "---------------------------------------------"
>         ]
>       ],
>       "document#2",
>       []
>     ]
>   ],
>   "status": "idle",
>   "importResponse": "",
>   "statusMessages": {
>     "Total Requests made to DataSource": "2",
>     "Total Rows Fetched": "3",
>     "Total Documents Processed": "1",
>     "Total Documents Skipped": "0",
>     "Full Dump Started": "2017-04-18 09:08:33",
>     "": "Indexing completed. Added/Updated: 1 documents. Deleted 0
> documents.",
>     "Committed": "2017-04-18 09:08:33",
>     "Time taken": "0:0:0.94"
>   }
> }
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-Child-true-flag-in-version-6-4-tp4330312p4330451.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message