You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2016/07/15 00:05:20 UTC

[jira] [Commented] (SOLR-9308) RTG w/fq seems to ignore fqs - regardless of wether docs are committed or not

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

Hoss Man commented on SOLR-9308:
--------------------------------



Steps to reproduce with a clean checkout of master...

* startup the cloud example: {noformat}
bin/solr -e cloud -noprompt
...
{noformat}
* explicitly disable auto commit so we can test RTG with filters against the update log: {noformat}
curl -H 'Content-Type: application/json' http://localhost:8983/solr/gettingstarted/config --data-binary '{"set-property":{"updateHandler.autoSoftCommit.maxTime":"-1"}}'
...
{noformat}
* add 2 docs, which we do not explicitly commit: {noformat}
curl -H 'Content-Type: application/json' http://localhost:8983/solr/gettingstarted/update --data-binary '[{"id":"xxx","aaa_i":1532757419},{"id":"yyy","aaa_i":-459637688}]'
...
{noformat}

* simple RTG (against ulog) should return both docs: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/get?ids=xxx,yyy'
  "response":{"numFound":2,"start":0,"docs":[
      {
        "id":"yyy",
        "aaa_i":-459637688,
        "_version_":1539875027865829376},
      {
        "id":"xxx",
        "aaa_i":1532757419,
        "_version_":1539875027875266560}]
  }}
{noformat}
* RTG w/fq (against ulog/realtimeSearcher) should only return doc yyy, not doc xxx: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/get?ids=xxx,yyy&fq=aaa_i:%5B*+TO+-459637688%5D'
{
  "response":{"numFound":2,"start":0,"docs":[
      {
        "id":"yyy",
        "aaa_i":-459637688,
        "_version_":1539875027865829376},
      {
        "id":"xxx",
        "aaa_i":1532757419,
        "_version_":1539875027875266560}]
  }}
{noformat} ...*UNEXPECTED RTG RESULT!*
* even a single id=xxx RTG w/fq (against ulog/realtimeSearcher) seems to be broken: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/get?id=xxx&fq=aaa_i:%5B*+TO+-459637688%5D'
{
  "response":{"numFound":1,"start":0,"docs":[
      {
        "id":"xxx",
        "aaa_i":1532757419,
        "_version_":1539876151162306560}]
  }}
{noformat} ...*UNEXPECTED RTG RESULT!*
* sanity check that it's not just some sort of univerted field / numerics problem: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/get?id=xxx&fq=bogus_s:ddd'
{
  "doc":
  {
    "id":"xxx",
    "aaa_i":1532757419,
    "_version_":1539876677341937664}}
{noformat} ...*UNEXPECTED RTG RESULT!*
* Commit both docs: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/update?commit=true'
...
{noformat}
* do a basic search for all docs with same numeric fq to confirm doc xxx doesn't match: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/query?q=*:*&fq=aaa_i:%5B*+TO+-459637688%5D'
{
  "responseHeader":{
    "zkConnected":true,
    "status":0,
    "QTime":65,
    "params":{
      "q":"*:*",
      "fq":"aaa_i:[* TO -459637688]"}},
  "response":{"numFound":1,"start":0,"maxScore":1.0,"docs":[
      {
        "id":"yyy",
        "aaa_i":-459637688,
        "_version_":1539875027865829376}]
  }}
{noformat}
* Also check the same RTG w/fq again now that docs are committed: {noformat}
curl 'http://localhost:8983/solr/gettingstarted/get?ids=xxx,yyy&fq=aaa_i:%5B*+TO+-459637688%5D'
{
  "response":{"numFound":2,"start":0,"docs":[
      {
        "id":"yyy",
        "aaa_i":-459637688,
        "_version_":1539875027865829376},
      {
        "id":"xxx",
        "aaa_i":1532757419,
        "_version_":1539875027875266560}]
  }}
{noformat} ... *RTG STILL UNEXPECTEDLY RETURNING DOC NOT MATCHING FQ!*

----
I've seen the code in RealtimeGetComponent that re-opens the realtime searcher and uses that if fq params are included -- I've read it a couple of times and it looks fine to me, so really have no idea why these trivial little examples fail so badly

[~yonik@apache.org]: any idea WTF is going on here?

> RTG w/fq seems to ignore fqs - regardless of wether docs are committed or not
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-9308
>                 URL: https://issues.apache.org/jira/browse/SOLR-9308
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>
> While working on a robust randomized test for SOLR-9285, I can't seem to get filter queries on RTG to work at all -- even when the docs are fully committed.
> steps to reproduce to follow in comment...



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org