#2053 Custom int fields sort as strings - NEEDS INI & SOLR REINDEX

v1.0.0
closed
sf-2 (994)
Tracker
Cory Johns
2015-08-20
2011-04-29
No

E.g. 1, 100, 2

This works correctly on mongo-backed search results, but is wrong for solr-backed.

Related

Tickets: #3876

Discussion

    • assigned_to: Tim Van Steenburgh
     
    • status: open --> in-progress
    • Milestone: someday --> forge-may-03
     
  • Dave Brondsema

    Dave Brondsema - 2013-05-03
    • Milestone: forge-may-03 --> forge-may-17
     
    • Size: --> 2
     
    • status: in-progress --> code-review
     
  • forge:tv/2053

    Review [#4321] first. Continue to use new solr server.

    Create a Number custom field in a Tracker tool. Create 3 new tickets, with values 1, 2, 100 in the custom field. Do a ticket search that includes all 3 tickets, then sort by your custom field - they should sort as strings instead of numbers.

    Update production.ini:

    solr.use_new_types = true
    

    Sort again - should sort as numbers.

     

    Related

    Tickets: #4321

  • Cory Johns - 2013-05-10
    • QA: Cory Johns
     
  • Cory Johns - 2013-05-13
    • summary: Custom int fields sort as strings --> Custom int fields sort as strings - NEEDS INI & SOLR REINDEX
    • status: code-review --> validation
     
  • Cory Johns - 2014-03-05
    • status: validation --> closed
     

Log in to post a comment.