Commit cd773165 authored by Sven Franck's avatar Sven Franck

stop defaulting to _id on queries because this will force GET over ALLDOCS

parent 18831a65
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
"footer": [] "footer": []
}, },
"feature_dict": { "feature_dict": {
"linkable": true "linkable": true,
"link_identifier": "reference"
} }
}, },
"children": [{ "children": [{
......
...@@ -576,8 +576,7 @@ ...@@ -576,8 +576,7 @@
item = items[k].doc; item = items[k].doc;
// TODO: not working to alternate identifier! // TODO: not working to alternate identifier!
identifier = item[spec.portal_type_title + "_" + identifier = item[spec.property_dict.feature_dict.link_identifier];
spec.property_dict.feature_dict.link_identifier];
// fallback to _id if no link identifier is specified // fallback to _id if no link identifier is specified
if (identifier === undefined) { if (identifier === undefined) {
...@@ -5034,7 +5033,7 @@ ...@@ -5034,7 +5033,7 @@
} else if (is_value) { } else if (is_value) {
// we need to check an existing query for the fields we are already // we need to check an existing query for the fields we are already
// searching. These fields should not be set in the search // searching. These fields should not be set in the search
if (field_dict && query) { if (field_list && query) {
wrap = ""; wrap = "";
for (property in field_list) { for (property in field_list) {
if (field_list.hasOwnProperty(property)) { if (field_list.hasOwnProperty(property)) {
...@@ -5434,7 +5433,7 @@ ...@@ -5434,7 +5433,7 @@
pass.state.query = app.generateQueryObject( pass.state.query = app.generateQueryObject(
pass.config.initial_query, pass.config.initial_query,
pass.type, pass.type,
pass.config.property_dict.initial_query_url_identifier || '_id', pass.config.property_dict.initial_query_url_identifier,
pass.value, pass.value,
pass.fields pass.fields
); );
...@@ -5505,7 +5504,7 @@ ...@@ -5505,7 +5504,7 @@
pass.state.query = app.generateQueryObject( pass.state.query = app.generateQueryObject(
{"query": pass.config.initial_query.query}, {"query": pass.config.initial_query.query},
pass.type, pass.type,
pass.config.property_dict.initial_query_url_identifier || '_id', pass.config.property_dict.initial_query_url_identifier,
pass.value pass.value
); );
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment