質問

I am indexing some course data(id, name, summary) along with attachments associates with these courses. I am using Extract RequestHandler to index docs by passing literal fields.

now there are three conditions while indexing.

  1. A course may have multiple attachments.
  2. No attachments
  3. A course may have exact one attachment.

looking over the issue. Solr-php-client Extract method doesn't seems to be useful. So my question is

  1. how to index these binary files along with course data(one solr document) ?
  2. how to map multiple docs/pdf with unique course id ?

Thanks :)

役に立ちましたか?

解決

Solr API did not allow attaching multiple files with a single Solr document.
For our project, we had zip the multiple files into a single attachment which was attached with the Solr document.
You can also index these multiple documents as individual Solr Documents having the same Course Id and use the Field Collapsing (Grouping) feature to display a Single course with the matches across attachments.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top