Shelley Lynn Hughes-Godfrey created GEODE-2948:
--------------------------------------------------

             Summary: Inconsistency in gfsh prompts related to lucene commands
                 Key: GEODE-2948
                 URL: https://issues.apache.org/jira/browse/GEODE-2948
             Project: Geode
          Issue Type: Bug
          Components: lucene
            Reporter: Shelley Lynn Hughes-Godfrey


There are some inconsistencies in how we present parameters and establish 
settings within the lucene gfsh commands.

For example, with `list lucene indexes` the user is prompted with the optional 
parameter 'with-stats'.  However, on `import data`, the user is only prompted 
with the required parameters (which does not include invoke-callbacks).  This 
is probably because there are no required parameters for list lucene indexes 
... and import data does show you the invoke-callbacks after all required 
fields have been provided. 

In addition, with `list lucene indexes`, specifying --with-stats is the same 
thing as entering --with-stats=true.  However, on `import data`, the 
--invoke-callbacks REQUIRES the full specification of --invoke-callbacks=true.  
Otherwise, the following error results:

{noformat}
gfsh>import data --file=./testRegion.gfd --region=testRegion3 
--member=server50505 --invoke-callbacks
Nulls cannot be presented to primitive type boolean for option 
'invoke-callbacks'
{noformat}

help text
{noformat}
gfsh>help import data
NAME
    import data
IS AVAILABLE
    true
SYNOPSIS
    Import user data from a file to a region.
SYNTAX
    import data --region=value --file=value --member=value 
[--invoke-callbacks=value]
PARAMETERS
    region
        Region into which data will be imported.
        Required: true
    file
        File from which the imported data will be read. The file must have an 
extension of ".gfd".
        Required: true
    member
        Name/Id of a member which hosts the region. The data will be imported 
from the specified file on the host where the member is running.
        Required: true
    invoke-callbacks
        Whether callbacks should be invoked
        Required: false
        Default (if the parameter is not specified): false


gfsh>help list lucene indexes
NAME
    list lucene indexes
IS AVAILABLE
    true
SYNOPSIS
    Display the list of lucene indexes created for all members.
SYNTAX
    list lucene indexes [--with-stats(=value)?]
PARAMETERS
    with-stats
        Display lucene index stats
        Required: false
        Default (if the parameter is specified without value): true
        Default (if the parameter is not specified): false
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to