You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2017/05/31 20:50:54 UTC

[09/47] geode git commit: GEODE-2957 gfsh create lucene index "null" becomes "DEFAULT"

GEODE-2957 gfsh create lucene index "null" becomes "DEFAULT"

    This closes #543


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/80675180
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/80675180
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/80675180

Branch: refs/heads/feature/GEODE-2632-18
Commit: 806751805cb47877b609ee35cbfa21b362a3d7b3
Parents: 3197140
Author: Karen Miller <km...@pivotal.io>
Authored: Fri May 26 11:57:49 2017 -0700
Committer: Karen Miller <km...@pivotal.io>
Committed: Tue May 30 15:44:48 2017 -0700

----------------------------------------------------------------------
 .../gfsh/command-pages/create.html.md.erb       | 21 ++++++++++++--------
 .../lucene_integration.html.md.erb              |  4 ++--
 2 files changed, 15 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/80675180/geode-docs/tools_modules/gfsh/command-pages/create.html.md.erb
----------------------------------------------------------------------
diff --git a/geode-docs/tools_modules/gfsh/command-pages/create.html.md.erb b/geode-docs/tools_modules/gfsh/command-pages/create.html.md.erb
index 1398352..ef68f90 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/create.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/create.html.md.erb
@@ -683,26 +683,31 @@ create lucene index --name=value --region=value --field=value(,value)* [--analyz
 |----------------------------------------------------|----------------------------------------------------------------------------------------|---------|
 | <span class="keyword parmname">\\-\\-name</span>       | *Required.* Name of the index to create.                                               |         |
 | <span class="keyword parmname">\\-\\-region</span>     | *Required.* Name/Path of the region which corresponds to the "from" clause in a query. |         |
-| <span class="keyword parmname">\\-\\-field</span>      | *Required.* Field of the region values that are referenced by the index. To treat the entire value as a single field, specify `__REGION_VALUE_FIELD`.     |         |
-| <span class="keyword parmname">&#8209;&#8209;analyzer</span>   | Analyzer to extract terms from text                                  |         |
+| <span class="keyword parmname">\\-\\-field</span>      | *Required.* Field of the region values that are referenced by the index. To treat the entire value as a single field, specify `__REGION_VALUE_FIELD`. |         |
+| <span class="keyword parmname">&#8209;&#8209;analyzer</span>   | Analyzer to extract terms from text. Use `DEFAULT` to specify the default analyzer.                                  |         |
 | <span class="keyword parmname">\\-\\-group</span>      | The index will be created on all the members in the specified member groups.                     |         |
 
 
 **Example Commands:**
 
 ``` pre
-create region --name=Person --type=PARTITION_REDUNDANT_PERSISTENT
-create lucene index --name=customerIndex --region=/Customer --field=symbol,revenue,SSN,name,email,address,__REGION_VALUE_FIELD
-create lucene index --name=analyzerIndex --region=/Person --field=name,email,address,revenue --analyzer=null,org.apache.lucene.analysis.core.KeywordAnalyzer,examples.MyCharacterAnalyzer,null
+gfsh>create region --name=Person --type=PARTITION_REDUNDANT_PERSISTENT
+
+gfsh>create lucene index --name=customerIndex --region=/Customer 
+     --field=symbol,revenue,SSN,name,email,address,__REGION_VALUE_FIELD
+
+gfsh>create lucene index --name=analyzerIndex --region=/Person 
+     --field=name,email,address,revenue 
+     --analyzer=DEFAULT,org.apache.lucene.analysis.core.KeywordAnalyzer,examples.MyCharacterAnalyzer,DEFAULT
 ```
 
 **Sample Output:**
 
 ``` pre
 gfsh>create lucene index --name=testIndex --region=testRegion --field=__REGION_VALUE_FIELD
-                 Member                  | Status
----------------------------------------- | ---------------------------------
-192.168.1.23(server50505:17200)<v1>:1025 | Successfully created lucene index
+               Member                  | Status
+-------------------------------------- | ---------------------------------
+192.168.1.23(server505:17200)<v1>:1025 | Successfully created lucene index
 ```
 
 ## <a id="topic_54B0985FEC5241CA9D26B0CE0A5EA863" class="no-quick-link"></a>create region

http://git-wip-us.apache.org/repos/asf/geode/blob/80675180/geode-docs/tools_modules/lucene_integration.html.md.erb
----------------------------------------------------------------------
diff --git a/geode-docs/tools_modules/lucene_integration.html.md.erb b/geode-docs/tools_modules/lucene_integration.html.md.erb
index 7f5afdc..41d429b 100644
--- a/geode-docs/tools_modules/lucene_integration.html.md.erb
+++ b/geode-docs/tools_modules/lucene_integration.html.md.erb
@@ -89,10 +89,10 @@ gfsh>create lucene index --name=indexName --region=/orders --field=customer,tags
 
 ``` pre
 // Create an index, specifying a custom analyzer for the second field
-// Note: "null" in the first analyzer position uses the default analyzer
+// Note: "DEFAULT" in the first analyzer position uses the default analyzer
 // for the first field
 gfsh>create lucene index --name=indexName --region=/orders
-  --field=customer,tags --analyzer=null,org.apache.lucene.analysis.bg.BulgarianAnalyzer
+  --field=customer,tags --analyzer=DEFAULT,org.apache.lucene.analysis.bg.BulgarianAnalyzer
 ```
 To use the entire value as a single field set the required `--field`
 option to be `__REGION_VALUE_FIELD`.