Gora -
SimplePostTool actually already adds the literal.id parameter* when in “auto”
mode (and it’s not an XML, JSON, or CSV file).
Erik
* See
https://github.com/apache/lucene-solr/blob/d4762c1a2677a44c8a580b97cccc239e1e91a25d/solr/core/src/java/org/apache/solr/util/SimplePostTool.java#L786
<https://github.com/apache/lucene-solr/blob/d4762c1a2677a44c8a580b97cccc239e1e91a25d/solr/core/src/java/org/apache/solr/util/SimplePostTool.java#L786>
—
Erik Hatcher, Senior Solutions Architect
http://www.lucidworks.com <http://www.lucidworks.com/>
> On Dec 2, 2015, at 11:18 AM, Gora Mohanty <[email protected]> wrote:
>
> On 2 December 2015 at 17:16, kostali hassan <[email protected]> wrote:
>> yes its logic Thank you , but i want understand why the same data is
>> indexing fine in shell using windows SimplePostTool :
>>>
>>> D:\solr\solr-5.3.1>java -classpath example\exampledocs\post.jar -Dauto=yes
>>> -Dc=solr_docs_core -Ddata=files -Drecursive=yes
>>> org.apache.solr.util.SimplePostTool D:\Lucene\document ;
>
> That seems strange. Are you sure that you are posting the same PDF.
> With SimplePostTool, you should be POSTing to the URL
> /solr/update/extract?literal.id=myid , i.e., you need an option of
> something like:
> -Durl=http://localhost:8983/solr/update/extract?literal.id=myid in the
> command line for SimplePostTool.
>
> Likewise, I am not that familiar with Solarium. Are you sure that the
> file is being POSTed to /solr/update/extract . Are you seeing any
> errors in your Solr logs?
>
> Regards,
> Gora