Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 474 posts 932 karma points
    Dec 08, 2016 @ 11:52
    suzyb
    0

    Order of Columns and filter by date

    We are looking at whether we could use this on a site we are working on. I have a couple of questions, I wonder if anyone has the answers for.

    Is it possible to customise the order of the columns when exported? I've added the list of member properties to the ExamineIndex.config in the order I would like them but it seems to still be ordering the columns randomly.

    Also would it be possible to filter by a date. We have a renewal date property which our client would like to be able to filter members by, for example find members with whose renewal date is in December. Would we need to custom code this or is there code in place for this kind of filter.

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Dec 09, 2016 @ 02:02
    Robert Foster
    100

    Hi Suzy,

    With regard to the property ordering on export, I haven't looked at it in a while, but it's coming from the Examine Lucene index if I remember correctly; and I'm not sure how much control we have over the ordering there. You could modify the source perhaps and do some manual ordering maybe.

    For the date filter, you'd need to implement that yourself in the AngularJS code - and you would also need to modify the search code to restrict the results to a date range - i.e., 1st December to 30th December.

    In order to do this though, you need to format the dates so they conform to Lucene Range searches, and you need to make sure that the date property on the member type is also indexed in the same format.

    Does that help?

    Rob

  • suzyb 474 posts 932 karma points
    Dec 09, 2016 @ 09:22
    suzyb
    0

    I suspected I'd need to make some modification to the source but thought I'd ask in case I missed something.

    Thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft