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 @@
"footer": []
},
"feature_dict": {
"linkable": true
"linkable": true,
"link_identifier": "reference"
}
},
"children": [{
......
......@@ -576,8 +576,7 @@
item = items[k].doc;
// TODO: not working to alternate identifier!
identifier = item[spec.portal_type_title + "_" +
spec.property_dict.feature_dict.link_identifier];
identifier = item[spec.property_dict.feature_dict.link_identifier];
// fallback to _id if no link identifier is specified
if (identifier === undefined) {
......@@ -5034,7 +5033,7 @@
} else if (is_value) {
// we need to check an existing query for the fields we are already
// searching. These fields should not be set in the search
if (field_dict && query) {
if (field_list && query) {
wrap = "";
for (property in field_list) {
if (field_list.hasOwnProperty(property)) {
......@@ -5434,7 +5433,7 @@
pass.state.query = app.generateQueryObject(
pass.config.initial_query,
pass.type,
pass.config.property_dict.initial_query_url_identifier || '_id',
pass.config.property_dict.initial_query_url_identifier,
pass.value,
pass.fields
);
......@@ -5505,7 +5504,7 @@
pass.state.query = app.generateQueryObject(
{"query": pass.config.initial_query.query},
pass.type,
pass.config.property_dict.initial_query_url_identifier || '_id',
pass.config.property_dict.initial_query_url_identifier,
pass.value
);
} 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