Skip to content

Commit ae6cf4e

Browse files
committed
no-op code cleanup, correct case of publicObject_b #10554
1 parent 15ace69 commit ae6cf4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/edu/harvard/iq/dataverse/search/SearchServiceBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ private String getPermissionFilterQuery(DataverseRequest dataverseRequest, SolrQ
10631063
StringBuilder sbgroups = new StringBuilder();
10641064

10651065
// All users, guests and authenticated, should see all the
1066-
// documents marked as PublicObject_b:true, at least:
1066+
// documents marked as publicObject_b:true, at least:
10671067
sb.append(SearchFields.PUBLIC_OBJECT + ":" + true);
10681068

10691069
// One or more groups *may* also be available for this user. Once again,
@@ -1161,7 +1161,7 @@ private String getPermissionFilterQuery(DataverseRequest dataverseRequest, SolrQ
11611161
* @todo rename this from publicPlusUserPrivateGroup. Confusing
11621162
*/
11631163
// safe default: public only
1164-
String publicPlusUserPrivateGroup = publicOnly;
1164+
String publicPlusUserPrivateGroup = publicOnly;
11651165
// + (onlyDatatRelatedToMe ? "" : (publicOnly + " OR "))
11661166
// + "{!join from=" + SearchFields.GROUPS + " to=" + SearchFields.PERMS + "}id:" + IndexServiceBean.getGroupPerUserPrefix() + au.getId() + ")";
11671167

src/main/java/edu/harvard/iq/dataverse/settings/FeatureFlags.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public enum FeatureFlags {
3939
/**
4040
* For published (public) objects, don't use a join when searching Solr.
4141
* Experimental! Requires a reindex with the following feature flag enabled,
42-
* in order to add the boolean PublicObject_b:true field to all the public
42+
* in order to add the boolean publicObject_b:true field to all the public
4343
* Solr documents.
4444
*
4545
* @apiNote Raise flag by setting
@@ -48,7 +48,7 @@ public enum FeatureFlags {
4848
*/
4949
AVOID_EXPENSIVE_SOLR_JOIN("avoid-expensive-solr-join"),
5050
/**
51-
* With this flag enabled, the boolean field PublicObject_b:true will be
51+
* With this flag enabled, the boolean field publicObject_b:true will be
5252
* added to all the indexed Solr documents for publicly-available collections,
5353
* datasets and files. This flag makes it possible to rely on it in searches,
5454
* instead of the very expensive join (the feature flag above).

0 commit comments

Comments
 (0)