SOLR LineEntityProcessor - извлечено х записей, но обработано / проиндексировано ноль записей - PullRequest
0 голосов
/ 15 октября 2018

Я пытаюсь получить все гиперссылки со страницы html и добавить их в качестве документов в SOLR.

Вот моя конфигурация DIH xml

<?xml version="1.0" encoding="UTF-8"?>
<dataConfig>
    <dataSource type="FileDataSource" name="fds" />
    <dataSource type="FieldReaderDataSource" name="frds" />
    <document>
        <entity name="lines" processor="LineEntityProcessor"
             acceptLineRegex="&lt;a\s+(?:[^&gt;]*?\s+)?href=([&quot;'])(.*?)\1"
            url="/Users/naveen/AppsAndData/data/test-data/testdata.html"
            dataSource="fds" transformer="RegexTransformer">
                <field column="line" />
        </entity>
    </document>
</dataConfig>

Содержимое файла mergedschema xml

<schema name="example-data-driven-schema" version="1.6">
    <uniqueKey>id</uniqueKey>
    <!-
     ---
    -->

    <field name="id" type="string" indexed="true" required="true" stored="true"/>
    <field name="line" type="text_general" indexed="true" stored="true"/>
</schema>

Когда я запускаю полный импорт, статус говорит:

Indexing completed. Added/Updated: 0 documents. Deleted 0 documents. (Duration: 01s)
Requests: 0 , Fetched: 4 4/s, Skipped: 0 , Processed: 0 

Я что-то упустил, пожалуйста, помогите мне здесь.

Спасибо, Навин

1 Ответ

0 голосов
/ 15 октября 2018

Поле id определено как обязательное = true, дополнительно оно определено как uniqueKey.Это может быть проблемой.Вы можете выключить его и попробовать еще раз?

...