-
-
Save rchukh/a29d1e294e49befe2c9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### SCHEMA | |
<schema name="elogging" version="1.5"> | |
<fields> | |
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false"/> | |
<field name="title" type="string" indexed="true" stored="true" required="true" /> | |
<field name="category" type="int" indexed="true" stored="true" required="true" multiValued="true"/> | |
<field name="_version_" type="long" indexed="true" stored="true"/> | |
</fields> | |
<uniqueKey>id</uniqueKey> | |
<types> | |
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/> | |
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> | |
</types> | |
</schema> | |
### DATA | |
{ | |
"responseHeader": { | |
"status": 0, | |
"QTime": 1, | |
"params": { | |
"q": "*:*", | |
"indent": "true", | |
"wt": "json", | |
"_": "1386505576524" | |
} | |
}, | |
"response": { | |
"numFound": 4, | |
"start": 0, | |
"docs": [ | |
{ | |
"category": [ | |
1, | |
2 | |
], | |
"title": "test", | |
"id": "1", | |
"_version_": 1453856367234252800 | |
}, | |
{ | |
"category": [ | |
2, | |
3 | |
], | |
"title": "Doc from cat 2,3", | |
"id": "2", | |
"_version_": 1453856424077557800 | |
}, | |
{ | |
"category": [ | |
7 | |
], | |
"title": "Doc from cat 7", | |
"id": "3", | |
"_version_": 1453856462346387500 | |
}, | |
{ | |
"category": [ | |
8 | |
], | |
"title": "Doc from cat 8", | |
"id": "4", | |
"_version_": 1453856469762965500 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment