Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit c819c76

Browse files
committed
Add index_all_fields to documentation and admin page
1 parent 88a3060 commit c819c76

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/main/java/com/searchcode/app/service/route/AdminRouteService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public Map<String, Object> adminPage(Request request, Response response) {
144144
map.put(Values.FOLLOW_LINKS, Properties.getProperties().getProperty(Values.FOLLOW_LINKS, Values.DEFAULT_FOLLOW_LINKS));
145145
map.put(Values.DEEP_GUESS_FILES, Properties.getProperties().getProperty(Values.DEEP_GUESS_FILES, Values.DEFAULT_DEEP_GUESS_FILES));
146146
map.put(Values.HOST_NAME, Properties.getProperties().getProperty(Values.HOST_NAME, Values.DEFAULT_HOST_NAME));
147+
map.put(Values.INDEX_ALL_FIELDS, Properties.getProperties().getProperty(Values.INDEX_ALL_FIELDS, Values.DEFAULT_INDEX_ALL_FIELDS));
147148

148149

149150
map.put("repoCount", this.getStat("repoCount"));

src/main/resources/spark/template/freemarker/admin.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ default_and_match=${default_and_match}
190190
log_indexed=${log_indexed}
191191
follow_links=${follow_links}
192192
deep_guess_files=${deep_guess_files}
193-
host_name=${host_name}</textarea>
193+
host_name=${host_name}
194+
index_all_fields=${index_all_fields}</textarea>
194195
</div>
195196

196197
<div style="width:100%; display: inline-block;">

src/main/resources/spark/template/freemarker/documentation.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ String myHmac = HmacUtils.hmacSha512Hex(MYPRIVATEKEY, PARAMSTOHMAC);</textarea>
750750
<dd>Boolean value true or false. If set to true when a file is encountered that cannot be classified though naming conventions its keywords will be analysed and a best guess made. This can be CPU heavy or incorrectly classify some files. Defaults to false.</dd>
751751
<dt>host_name</dt>
752752
<dd>String value. Set this to the expected DNS host name for your searchcode server instance. This will allow things like RSS links to work.</dd>
753+
<dt>index_all_fields</dt>
754+
<dd>A list of file content that will be added to the all portion of the index. You could use this to exclude filename or paths. Defaults to index_all_fields=content,filename,filenamereverse,path,interesting</dd>
753755
</dl>
754756
</p>
755757

0 commit comments

Comments
 (0)