You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2020/10/01 14:58:23 UTC

[lucene-solr] branch master updated (9cadbf0 -> 45dc261)

This is an automated email from the ASF dual-hosted git repository.

ehatcher pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git.


    from 9cadbf0  SOLR-12987: Deprecated plugins are logged once and with log category org.apache.solr.DEPRECATED (#1927)
     new 1af17a5  SOLR-14792: add removal message to major changes section of ref guide
     new 45dc261  SOLR-14792: Remove /browse references from example and docs

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 solr/example/films/README.md                       | 46 ----------------------
 .../src/initparams-in-solrconfig.adoc              |  2 +-
 .../src/major-changes-in-solr-9.adoc               |  4 ++
 .../src/rule-based-authorization-plugin.adoc       |  2 +-
 solr/solr-ref-guide/src/solr-tutorial.adoc         | 13 +-----
 5 files changed, 7 insertions(+), 60 deletions(-)


[lucene-solr] 01/02: SOLR-14792: add removal message to major changes section of ref guide

Posted by eh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ehatcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 1af17a5f0151a4f4a0be864c17c510a244771b7b
Author: Erik Hatcher <er...@lucidworks.com>
AuthorDate: Thu Sep 17 17:24:18 2020 -0400

    SOLR-14792: add removal message to major changes section of ref guide
---
 solr/solr-ref-guide/src/major-changes-in-solr-9.adoc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc b/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
index f59f5e5..b989126 100644
--- a/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
+++ b/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
@@ -125,6 +125,10 @@ _(raw; not yet edited)_
 
 * SOLR-14783: Data Import Handler (DIH) has been removed from Solr. The community package is available at: https://github.com/rohitbemax/dataimporthandler (Alexandre Rafalovitch)
 
+* SOLR-14792: VelocityResponseWriter has been removed from Solr.  This encompasses all previous included `/browse` and
+  `wt=velocity` examples.  This feature has been migrated to an installable package at
+  https://github.com/erikhatcher/solritas
+
 * SOLR-14510: The `writeStartDocumentList` in `TextResponseWriter` now receives an extra boolean parameter representing the "exactness" of the numFound value (exact vs approximation).
   Any custom response writer extending `TextResponseWriter` will need to implement this abstract method now (instead previous with the same name but without the new boolean parameter).
 


[lucene-solr] 02/02: SOLR-14792: Remove /browse references from example and docs

Posted by eh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ehatcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 45dc2615c7063ca81d5c9b53d0f299afe714c41f
Author: Erik Hatcher <er...@lucidworks.com>
AuthorDate: Thu Oct 1 10:57:57 2020 -0400

    SOLR-14792: Remove /browse references from example and docs
---
 solr/example/films/README.md                       | 46 ----------------------
 .../src/initparams-in-solrconfig.adoc              |  2 +-
 .../src/rule-based-authorization-plugin.adoc       |  2 +-
 solr/solr-ref-guide/src/solr-tutorial.adoc         | 13 +-----
 4 files changed, 3 insertions(+), 60 deletions(-)

diff --git a/solr/example/films/README.md b/solr/example/films/README.md
index 8bd0ce7..d82322c 100644
--- a/solr/example/films/README.md
+++ b/solr/example/films/README.md
@@ -69,29 +69,6 @@ This data consists of the following fields:
      
        http://localhost:8983/solr/films/query?q=*:*&facet=true&facet.field=genre
 
-     - Browse the indexed films in a traditional browser search interface:
-     
-       http://localhost:8983/solr/films/browse
-
-       Now browse including the genre field as a facet:
-       
-       http://localhost:8983/solr/films/browse?facet.field=genre
-
-       If you want to set a facet for /browse to keep around for every request add the facet.field into the "facets"
-       param set (which the /browse handler is already configured to use):
-
-        ```
-        curl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json'  -d '{
-          "update" : {
-            "facets": {
-              "facet.field":"genre"
-            }
-          }
-        }'
-        ```
-       
-        And now http://localhost:8983/solr/films/browse will display the _genre_ facet automatically.
-
 Exploring the data further - 
 
   * Increase the MAX_ITERATIONS value, put in your freebase API_KEY and run the film_data_generator.py script using Python 3.
@@ -133,29 +110,6 @@ curl http://localhost:8983/solr/films/schema -X POST -H 'Content-type:applicatio
     }
 }'
 bin/post -c films example/films/films.json
-curl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json'  -d '{
-"update" : {
-  "facets": {
-    "facet.field":"genre"
-    }
-  }
-}'
 
 # END_OF_SCRIPT
 ```
-
-Additional fun -
-
-```
-Add highlighting:
-curl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json'  -d '{
-"set" : {
-  "browse": {
-    "hl":"on",
-    "hl.fl":"name"
-    }
-  }
-}'
-```
-
-try http://localhost:8983/solr/films/browse?q=batman now, and you'll see "batman" highlighted in the results
diff --git a/solr/solr-ref-guide/src/initparams-in-solrconfig.adoc b/solr/solr-ref-guide/src/initparams-in-solrconfig.adoc
index 0429783..aa21f5f 100644
--- a/solr/solr-ref-guide/src/initparams-in-solrconfig.adoc
+++ b/solr/solr-ref-guide/src/initparams-in-solrconfig.adoc
@@ -31,7 +31,7 @@ For example, here is one of the `<initParams>` sections defined by default in th
 
 [source,xml]
 ----
-<initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
+<initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell">
   <lst name="defaults">
     <str name="df">_text_</str>
   </lst>
diff --git a/solr/solr-ref-guide/src/rule-based-authorization-plugin.adoc b/solr/solr-ref-guide/src/rule-based-authorization-plugin.adoc
index 2863770..38c1b39 100644
--- a/solr/solr-ref-guide/src/rule-based-authorization-plugin.adoc
+++ b/solr/solr-ref-guide/src/rule-based-authorization-plugin.adoc
@@ -241,7 +241,7 @@ The predefined permission names (and their effects) are:
 ** CLUSTERSTATUS
 ** REQUESTSTATUS
 * *update*: this permission is allowed to perform any update action on any collection. This includes sending documents for indexing (using an <<requesthandlers-and-searchcomponents-in-solrconfig.adoc#updaterequesthandlers,update request handler>>). This applies to all collections by default (`collection:"*"`).
-* *read*: this permission is allowed to perform any read action on any collection. This includes querying using search handlers (using <<requesthandlers-and-searchcomponents-in-solrconfig.adoc#searchhandlers,request handlers>>) such as `/select`, `/get`, `/browse`, `/tvrh`, `/terms`, `/clustering`, `/elevate`, `/export`, `/spell`, `/clustering`, and `/sql`. This applies to all collections by default ( `collection:"*"` ).
+* *read*: this permission is allowed to perform any read action on any collection. This includes querying using search handlers (using <<requesthandlers-and-searchcomponents-in-solrconfig.adoc#searchhandlers,request handlers>>) such as `/select`, `/get`, `/tvrh`, `/terms`, `/clustering`, `/elevate`, `/export`, `/spell`, `/clustering`, and `/sql`. This applies to all collections by default ( `collection:"*"` ).
 * *all*: Any requests coming to Solr.
 
 === Permission Ordering and Resolution
diff --git a/solr/solr-ref-guide/src/solr-tutorial.adoc b/solr/solr-ref-guide/src/solr-tutorial.adoc
index 37380d9..6da43f5 100644
--- a/solr/solr-ref-guide/src/solr-tutorial.adoc
+++ b/solr/solr-ref-guide/src/solr-tutorial.adoc
@@ -751,11 +751,7 @@ There are a great deal of other parameters available to help you control how Sol
 
 ==== Range Facets
 
-For numerics or dates, it's often desirable to partition the facet counts into ranges rather than discrete values. A prime example of numeric range faceting, using the example techproducts data from our previous exercise, is `price`.  In the `/browse` UI, it looks like this:
-
-.Range facets
-image::images/solr-tutorial/tutorial-range-facet.png[Solr Quick Start: Range facets]
-
+For numerics or dates, it's often desirable to partition the facet counts into ranges rather than discrete values. A prime example of numeric range faceting, using the example techproducts data from our previous exercise, is `price`.
 The films data includes the release date for films, and we could use that to create date range facets, which are another common use for range facets.
 
 The Solr Admin UI doesn't yet support range facet options, so you will need to use curl or similar command line tool for the following examples.
@@ -956,13 +952,6 @@ Solr has sophisticated geospatial support, including searching within a specifie
 
 Some of the example techproducts documents we indexed in Exercise 1 have locations associated with them to illustrate the spatial capabilities. To reindex this data, see <<index-the-techproducts-data,Exercise 1>>.
 
-Spatial queries can be combined with any other types of queries, such as in this example of querying for "ipod" within 10 kilometers from San Francisco:
-
-.Spatial queries and results
-image::images/solr-tutorial/tutorial-spatial.png[Solr Quick Start: spatial search]
-
-This is from Solr's example search UI (called `/browse`), which has a nice feature to show a map for each item and allow easy selection of the location to search near. You can see this yourself by going to <http://localhost:8983/solr/techproducts/browse?q=ipod&pt=37.7752%2C-122.4232&d=10&sfield=store&fq=%7B%21bbox%7D&queryOpts=spatial&queryOpts=spatial> in a browser.
-
 To learn more about Solr's spatial capabilities, see the section <<spatial-search.adoc#spatial-search,Spatial Search>>.
 
 == Wrapping Up