Continuing my saga here - since the first part (deploying the XML data) appears to have succeeded.
Environment
General Background / Intent
- Pushing XML files (not DCRs) into LSCS with startdeploy.sh
- XML files are fairly small and simple, and I've mirrored the contents as EAs on the files before deploying them - so I should be able to just query against the metadata.
E.g.:
[Content]
<Document>
<AvailableFor>160</AvailableFor>
<EndDate>2014-11-03T00:00:00-08:00</EndDate>
<MaxTerm>60</MaxTerm>
<MinTerm>49</MinTerm>
<ModelNumber>4442</ModelNumber>
<ModelYear>2015</ModelYear>
<StartDate>2014-10-01T00:00:00-07:00</StartDate>
</Document>
[EAs (iwextattr -l)]
AvailableFor=160
EndDate=2014-11-03T00:00:00-08:00
MaxTerm=60
MinTerm=49
ModelNumber=4442
ModelYear=2015
StartDate=2014-10-01T00:00:00-07:00
- Question: Does LSCS care whether your EAs are "Foo=123" vs. "TeamSite/Metadata/Foo=123"?
- I'm trying to formulate a query against all the data pushed into LSCS to retrieve one or two pieces of data.
- I've tried a number of different queries with very limited success, and this is just trying to utilize one EA constraint. The next step will be to utilize multiple EA constraint
[NOTE: For actual URL ‘(‘ becomes '%28'; ‘)’ becomes '%29', and (space) ‘ ‘ becomes %20]
http://lscs_server_name/lscs/v1/document$?q=(path=/folder_name/* AND 4430)&project=//ts_server/default/main/branch_path (24 records)
http://lscs_server_name/lscs/v1/document$?q=(path=/folder_name/* AND ModelNumber=4430)&project=//ts_server/default/main/branch_path (all 144 records)
http://lscs_server_name/lscs/v1/document$?q=(path=/folder_name/* AND ModelNumber:4430)&project=//ts_server/default/main/branch_path (all 144 records)
http://lscs_server_name/lscs/v1/document$?q=ModelNumber=4430&project=//ts_server/default/main/branch_path (all 144 records)
http://lscs_server_name/lscs/v1/document$?q=ModelNumber:4430&project=//ts_server/default/main/branch_path (0 records)
http://lscs_server_name/lscs/v1/document$?q=ModelNumber:=4430&project=//ts_server/default/main/branch_path (0 records)
It's possible that I missed something else - because I assumed (perhaps incorrectly) that if the first query appeared to limit the results to the correct number (24) that it meant the EAs were being consumed by and therefore queryable from LSCS - however I notice in the debug panel that when I query for '*' in metadata, it shows 144 hits, but none of them seem to have any metadata:
<document id="7e25d82c29d8028e204ff1397565086d"
uri="/document/id/7e25d82c29d8028e204ff1397565086d"
context="edd88ffeef68d0520c8f2060aa2d4f08"
path="folder_name/sOiLUgMTsP.xml">
<metadata>
</metadata>
</document>
- Question: What do I need to do to get the EAs to be consumed into LSCS along with the data?