Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 440 Vote(s) - 3.59 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apach Solr import index from csv(UTF-8) error: undefined field

#1
When I try to load data using command from solr documentation:

curl

[To see links please register here]

--data-binary @7.csv -H 'Content-type:text/csv; charset=utf-8'

result:

1)If the csv encode is ANSI, it can import/update successfully but it can not support Chinese.

2)if the csv encode is UTF-8, result is error but it always show :undefined field.



The first column in csv is topicType. However the field is clearly defined and what is it with the ? before the field name? How can I load the data?
Reply

#2
Most probably you run into the [Byte Order Mark][1] that some software (especially Microsoft) put right at the start of the text.

You should be able to search for "'your software' export without byte order mark" and you'll find an answer or a workaround. Some editors may also know how to save with or without BOM

[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through