[ckan-dev] Dateset Search Date Filter

Steve Matchett smatchet at mix.wvu.edu
Thu Jun 6 19:59:29 UTC 2013


I literally ran into a very similar problem you want to have a '+' sign as
the first char in the string fq += ' +%s:"%s"' % (param, value)

On Thu, Jun 6, 2013 at 3:03 PM, Prahadeesh S <prahad at gmail.com> wrote:
> Hi,
>
> I am writing some custom search filters for our system. I am on CKAN 2.0
>
> Is there anyway to filter the results based on date range.
>
> We have a custom date field based on which dataset needs to be filtered.
>
> Solr format of [ D1 TO D2] is throwing error. Looking closely into the
query
> string passed to Solr, param value is going in as String i.e. "[D1 TO D2]"
> rather than [D1 to D2].
>
> fq += ' %s:"%s"' % (param, value)
>
> Whether my finding is correct or am I doing something wrong here?
>
> Thanks
> Prahadeesh
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>



-- 
Steven Matchett
Software Engineer -- MATRIC Research
West Virginia University - Lane Department of CS
Cell: (973) 945 - 8572
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130606/d49392a6/attachment-0001.html>


More information about the ckan-dev mailing list