geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Markito Oliveira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-1734) Lucene search for a single entry is returning multiple results
Date Sat, 06 Aug 2016 00:43:20 GMT

    [ https://issues.apache.org/jira/browse/GEODE-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410340#comment-15410340
] 

William Markito Oliveira commented on GEODE-1734:
-------------------------------------------------

That also has impact on the "limit" options on GFSH:
{code} 
gfsh>lucene search --name=customerF1 --region=/myCustomer --queryStrings="Wil*" --defaultField="f1"
--limit=1
key |                                           value                                    
      | score
--- | -----------------------------------------------------------------------------------------
| -----
1   | PDX[1,org.apache.geode.example.lucene.Customer]{f1=William, f2=Oliveira, f3=32, f4=97007}
| 1
1   | PDX[1,org.apache.geode.example.lucene.Customer]{f1=William, f2=Oliveira, f3=32, f4=97007}
| 1
{code} 



> Lucene search for a single entry is returning multiple results
> --------------------------------------------------------------
>
>                 Key: GEODE-1734
>                 URL: https://issues.apache.org/jira/browse/GEODE-1734
>             Project: Geode
>          Issue Type: Bug
>          Components: lucene
>            Reporter: William Markito Oliveira
>
> Searching for a unique entry is returning multiple results, although the key is the same.
 It should return a single result.
> {code}
> gfsh>lucene search --name=customerRegionAll --queryStrings="firstName:Jdfmlevjenzwgd"
--region=/customer --defaultField=displayName
>                 key                  |                                              
value                                               | score
> ------------------------------------ | -------------------------------------------------------------------------------------------------
| ---------
> 70dbdb7f-648e-415e-880d-15631f87a523 | PDX[16777220,org.example.domain.model.CustomerEntity]{active=false,
addresses=.. | 12.798602
> 70dbdb7f-648e-415e-880d-15631f87a523 | PDX[16777220,org.example.domain.model.CustomerEntity]{active=false,
addresses=.. | 12.798602
> 70dbdb7f-648e-415e-880d-15631f87a523 | PDX[16777220,org.example.domain.model.CustomerEntity]{active=false,
addresses=.. | 12.798602
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message