Re: Date Format Conversion Function Query

2015-06-10 Thread Upayavira
Another technology that might make more sense is a Doc Transformer. You also specify them in the fl parameter. I would imagine you could specify fl=id,[persian f=gregorian_Date] See here for more cases: https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents This does

Re: Date Format Conversion Function Query

2015-06-10 Thread Alessandro Benedetti
Erick will correct me if I am wrong but this function query I don't think it exists. But maybe can be a nice contribution. It should take in input a date format and a field and give in response the new formatted Date. The would be simple to use it :

Re: Date Format Conversion Function Query

2015-06-10 Thread Ali Nazemian
Dear Erick, Hi, Actually I want to convert date format from Geregorian calendar (solr default) to Perisan calendar. You may ask why i do not do that at client side? Here is why: I want to provide a way to extract data from solr in the csv format. I know that solr has csv ResponseWriter that could

Re: Date Format Conversion Function Query

2015-06-10 Thread Ali Nazemian
Thank you very much. It seems that document transformer is the perfect extension point for this conversion. I will try to implement that. Best regards. On Wed, Jun 10, 2015 at 3:54 PM, Upayavira u...@odoko.co.uk wrote: Another technology that might make more sense is a Doc Transformer. You

Date Format Conversion Function Query

2015-06-09 Thread Ali Nazemian
Dear all, Hi, I was wondering is there any function query for converting date format in Solr? If no, how can I implement such function query myself? -- A.Nazemian

Re: Date Format Conversion Function Query

2015-06-09 Thread Erick Erickson
I'm not sure what you're asking for, give us an example input/output pair? Best, Erick On Tue, Jun 9, 2015 at 8:47 AM, Ali Nazemian alinazem...@gmail.com wrote: Dear all, Hi, I was wondering is there any function query for converting date format in Solr? If no, how can I implement such