Hello Community,

I am working with existing JSON objects that I cannot change significantly that 
I need to index.

I am not attempting to index what SOLR calls "nested objects" but rather JSON 
objects that have values that are objects themselves.
A simplified​​ version would be:

{
"top": "one",
"child": {
    "item" : "value"
    },
"another" :  "two"
}

in the schema.xml I can have, in part,
<field name="child.item" type="string" indexed="true" stored="true" 
required="false" multiValued="false" />

This will index one document, which is what I want.

{
"top": "one",
 "child.item" : "value",
"another" :  "two"
}

However, when I search and return the document, I want this field to be 
something different, say just "item"

If I attempt to use the f parameter like so  f=item:/child/item
(also json.command=false) and schema.xml
<field name="item" type="string" indexed="true" stored="true" required="false" 
multiValued="false" />
I get only that field indexed and returned. And the other fields are ignored.

{
 "item" : "value"
}

A couple of questions then.

  1.  Why are the other fields ignored?
  2.  Can I put the f parameter in the schema.xml or solrconfig.xml somehow as 
I cannot put them in the actual requests.

Thank you in advance for any insights.

Matthew Castrigno



----------------------------------------------------------------------
"This message is intended for the use of the person or entity to which it is 
addressed and may contain information that is confidential or privileged, the 
disclosure of which is governed by applicable law. If the reader of this 
message is not the intended recipient, you are hereby notified that any 
dissemination, distribution, or copying of this information is strictly 
prohibited. If you have received this message by error, please notify us 
immediately and destroy the related message."

Reply via email to