Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:20:55+00:00 2026-06-18T02:20:55+00:00

thanks for the previous responses. i have the following file. and i am using

  • 0

thanks for the previous responses. i have the following file. and i am using the /update/csv handler to index this into solr! my questions is do i have to transform this file before i can index the first field as a date to the required format … or can i use the map parameter to achieve the same ..

    2011-12-16 21:16:36,510 Total: 2139 Free: 1569
    2011-12-16 21:17:07,593 Total: 2139 Free: 1572
    2011-12-16 21:17:38,819 Total: 2139 Free: 1572
    2011-12-16 21:18:09,789 Total: 2138 Free: 1567
    2011-12-16 21:18:40,667 Total: 2139 Free: 1580

i tried using the map parameter thus ..

fieldnames=logged_dt,val_s

f.logged_dt.map=* *:*T*Z

basically i want each line to be transformed to this

    2011-12-16T21:16:36Z,510 Total: 2139 Free: 1569

so it conforms to the specified date format..! am i missing something ? can i use the map parameter to do it or do i need to transform my input file ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:20:56+00:00Added an answer on June 18, 2026 at 2:20 am

    All Update handlers are pretty strict about the formats and dates usually suffer the most.

    So, you cannot do this directly in CSV. And map does not support regular expressions – just direct values.

    However, you can use Update Request Processor which can be added to any request processor using update.chain parameter in solrconfig.xml. You best bet is to use RegexReplaceProcessorFactory (requires Solr 4). It takes standard Java regular expressions including group replacement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have fit a regression using lme4 thanks to a previous answer . Now
I have come across html2canvas thanks to a previous question of mine. What I
Thanks for reading this. I have no idea why this is throwing a NullReferenceException
thank u for all ur previous responses which are very helpful. I have another
Thanks to all that responded to my previous thread. There is still a problem
Thanks for previous replies, I tried to check the data connection through code, I
Thanks for previous replies, is it possible to delete the stored content from sqlite
Thanks to suggestions from a previous question , I'm busy trying out IronPython, IronRuby
Thanks for your answers to my previous question about GUI in java . I
Thanks for stopping by. this static analyser warning is annoying me here is my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.