i need to have nested object to solr document , and query in nested objects
and children. i create this schema :
<field name="topic" type="text_fa" indexed="true" stored="true" multiValued=
"true" termVectors="true"/> <field name="topic.code" type="text_general"
indexed="true" stored="true" multiValued="true" /> <field name="topic.name"
type="text_fa" indexed="true" stored="true" multiValued="true"/>
and add this doc :
{
"id":12,
"topic":{"code":12,"name":"hi"}
}
this file added completly but have a probelm in search. i didn't get any
result when is search : "topic.code:12"
i didn't get any result from solr.
what is my problem?
schema? adding doc ? or query ?
On Sat, Jul 14, 2018 at 4:24 PM Andrea Gazzarini <[email protected]>
wrote:
> Hi,
> Please expand a bit your needs, because the answer to your question could
> be different.
>
> Specifically: is that nesting needed only for visualization purposes? Could
> you please expand your access pattern (i.e. queries requirements)?
>
> Even if Solr supports nested documents (just google "Solr nested
> documents") , depending on the answers above, it could be something that
> you don't need.
>
> Best,
> Andrea
>
> Il sab 14 lug 2018, 13:27 sara hajili <[email protected]> ha scritto:
>
> > hi
> > i need add nested document in solr . how can i do this ?
> > how add nested document field in schema ?
> > for example i need to add this :
> > {
> > "id":12,
> > 'topic":[ {
> > code:1,
> > name:"hi"
> > },
> > {
> > code:2,
> > name:"hi"
> > }
> > ]
> > }
> >
>