Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Default parameters conflit with configued parameters #175

Closed
diegobrum opened this issue Dec 14, 2016 · 2 comments
Closed

Default parameters conflit with configued parameters #175

diegobrum opened this issue Dec 14, 2016 · 2 comments

Comments

@diegobrum
Copy link
Contributor

Only in Solr5

What?
Configuring parameter Fields, Query and Sort with below informations:

documentCollection
    .Select()
    .Query(new QueryAll())
    .Fields(q => q.Id, q => q.Name)
    .Sort(q => q.Id, false);

Actual behaviour
Query send to Solr like below:

{
  "fields": [
    "id",
    "name"
  ],
  "limit": 10,
  "offset": 0,
  "query": "*:*",
  "sort": "id desc",
  "params": {
    "echoParams": "none",
    "wt": "json",
    "indent": "off",
    "defType": "edismax",
    "fl": "*,score",
    "q.alt": "*:*",
    "sort": "score asc",
    "df": "id",
    "q": "*:*"
  }
}

Expected behaviour
Query send to Solr like below:

{
  "fields": [
    "id",
    "name"
  ],
  "limit": 10,
  "offset": 0,
  "query": "*:*",
  "sort": "id desc",
  "params": {
    "echoParams": "none",
    "wt": "json",
    "indent": "off",
    "defType": "edismax",
    "q.alt": "*:*",
    "df": "id"
  }
}

NOTE
Params property without fl, q and sort properties

diegobrum pushed a commit that referenced this issue Dec 14, 2016
diegobrum pushed a commit that referenced this issue Dec 14, 2016
diegobrum pushed a commit that referenced this issue Dec 14, 2016
diegobrum pushed a commit that referenced this issue Dec 14, 2016
@diegobrum
Copy link
Contributor Author

Closes #174

@lock
Copy link

lock bot commented Jan 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant