lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Rauch (JIRA)" <>
Subject [jira] [Created] (LUCENENET-597) SpanNearQuery: Wrong formatting in ToString()
Date Tue, 24 Oct 2017 19:03:00 GMT
Matthias Rauch created LUCENENET-597:

             Summary: SpanNearQuery: Wrong formatting in ToString()
                 Key: LUCENENET-597
             Project: Lucene.Net
          Issue Type: Bug
    Affects Versions: Lucene.Net 4.8.0
            Reporter: Matthias Rauch
            Priority: Minor

When I run the following code:
      var clauses = new[] { new SpanTermQuery (new Term ("f", "lucene")), new SpanTermQuery
(new Term("f", "net")), new SpanTermQuery (new Term("f", "solr")) };
      var query = new SpanNearQuery (clauses, 0, true);
      var queryString = query.ToString()

{{queryString}} has the value {{spanNear([f:lucenef:net, f:solr, ], 0, True)}} although {{spanNear([f:lucene,
f:net, f:solr], 0, True)}} would be correct.

This message was sent by Atlassian JIRA

View raw message