tailieunhanh - Solr 1.4 Enterprise Search Server- P3

Tham khảo tài liệu 'solr enterprise search server- p3', công nghệ thông tin, quản trị web phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 3 When you search for all documents you should see indexed metadata for Angel Eyes prefixed with metadata_ str name metadata_Content-Type audio midi str str name metadata_divisionType PPQ str str name metadata_patches 0 str str name metadata_stream_content_type application octet-stream str str name metadata_stream_name str str name metadata_stream_size 55677 str str name metadata_stream_source_info file str str name metadata_tracks 16 str Obviously in most use cases every time you index the same file you don t want to get a new document. If your schema has a uniqueKey field defined such as id then you can provide a specific ID by passing a literal value using literal. id 34. Each time you index the file using the same ID it will delete and insert that document. However that implies that you have the ability to manage IDs through some third party system like a database. If you want to use the metadata such as the stream_name provided by Tika to provide the key then you just need to map that field using map. stream_ name id. To make the example work update . examples cores karaoke schema. xml to specify uniqueKey id uniqueKey . curl http localhost 8983 solr karaoke update extract map. content text id -F file @ This of course assumes that you ve defined uniqueKey id uniqueKey to be of type string not a number. Indexing richer documents Indexing karaoke lyrics from MIDI files is also a fairly trivial example. We basically just strip out all of the contents and store them in the Solr text field. However indexing other types of documents such as PDFs can be a bit more complicated. Let s look at Take a Chance on Me a complex PDF file that explains what a Monte Carlo simulation is while making lots of puns about the lyrics and titles of songs from ABBA. View . examples appendix karaoke and you will see a complex PDF document with multiple fonts background images complex mathematical equations Greek symbols and .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.