Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove include_storedfields

  • Loading branch information...
commit 27ff5768ffd43dc119ce619c092b4ff945b86e9d 1 parent 8194a9a
@nesteffe authored
View
1  README.md
@@ -423,7 +423,6 @@ The following parameters can be passed for more sophisticated searches;
<dt>force_json<dt><dd>Usually couchdb-lucene determines the Content-Type of its response based on the presence of the Accept header. If Accept contains "application/json", you get "application/json" in the response, otherwise you get "text/plain;charset=utf8". Some tools, like JSONView for FireFox, do not send the Accept header but do render "application/json" responses if received. Setting force_json=true forces all response to "application/json" regardless of the Accept header.</dd>
<dt>include_docs</dt><dd>whether to include the source docs</dd>
<dt>include_fields</dt><dd>By default, <i>all</i> stored fields are returned with results. Use a comma-separate list of field names with this parameter to refine the response</dd>
-<dt>include_storedfields</dt><dd>Return stored fields with the results. Default is <i>false</i>. Please note that the addition of this parameter constitutes a change in the default behavior. Previously stored fields were always returned when they exist. To emulate this behavior you must set this option to true.</dd>
<dt>include_termvectors</dt><dd>Return term vectors with the results. Default is <i>false</i>.</dd>
<dt>highlights</dt><dd>Number of highlights to include with results. Default is <i>0</i>. This uses the <i>fast-vector-highlighter</i> plugin.</dd>
<dt>highlight_length</dt><dd>Number of characters to include in a highlight row. Default and minimum is <i>18</i>.</dd>
View
3  src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -533,7 +533,6 @@ public void search(final HttpServletRequest req,
final int highlights = getIntParameter(req, "highlights", 0);
final int highlight_length = max(getIntParameter(req, "highlight_length", 18), 18); // min for fast term vector highlighter is 18
final boolean include_termvectors = getBooleanParameter(req, "include_termvectors");
- final boolean include_storedfields = getBooleanParameter(req, "include_storedfields");
final int limit = getIntParameter(req, "limit",
ini.getInt("lucene.limit", 25));
final Sort sort = CustomQueryParser.toSort(req
@@ -619,7 +618,7 @@ public void search(final HttpServletRequest req,
if (include_docs) {
fetch_ids[i - skip] = doc.get("_id");
}
- if (include_storedfields && fields.length() > 0) {
+ if (fields.length() > 0) {
row.put("fields", fields);
}
if (highlight_rows.length() > 0) {
Please sign in to comment.
Something went wrong with that request. Please try again.