Github user jtibshirani commented on the issue:

    https://github.com/apache/lucene-solr/pull/375
  
    I'm sorry for the confusion -- I didn't mean complete parity with 
`RegexpQuery`, as they are different queries with different behaviors, but 
rather consistency how they treat an empty regex. After thinking more I now see 
your point, it makes a lot more sense to describe it as consistency with 
`PrefixCompletionQuery`!
    
    I've made the following changes:
    - Replaced references to 'parity with `RegexpQuery`' to 'consistency with 
`PrefixCompletionQuery`, as this is more accurate.
    - Added an optimization to `ContextQuery#createWeight` that returns an 
empty automaton if the inner weight is empty. Note that this optimization only 
helps with `RegexCompletionQuery`. When `PrefixCompletionQuery` contains an 
empty term, its automaton is actually `*` -- maybe we could look into adding an 
optimization there in a follow-up.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to