[ckan-dev] Dateset Search Date Filter

Prahadeesh S prahad at gmail.com
Thu Jun 6 20:57:23 UTC 2013


I after removing quotes surrounding the string everything seem to working
fine.

fq +=' %s: %s' % (param,value)

Do we really need to wrap the value with " to make it as string?

Even without these "" search appears to be working normal.

Thanks
Prahadeesh


>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130606/b3c6629a/attachment-0001.html>


More information about the ckan-dev mailing list