How to check if a field has been indexed - solr

I recently updated my SOLR config and run again the import query.
Data is present but still I can't filter by a new field I just added.
How can I check the new field has beed indexed correctly?
Possibly doing this from the SOLR console.

If you are able to search on the field then you can be sure that the field is indexed.
The other option is to go to the solr analysis page and check if the field is indexed or not.
The last option could be go to the solr analysis page and check the schema file if it updated for a particular core or the collection which you are referring.

Related

typo3 solr: create a query with typoscript with facets for navigation menu

Is it possible to create a typoscript with a query for solr ,so that RECORDS of a facet can be used for an HMENU?
Or should an USER_FUNC do that work?
I would go for a USER_FUNC and connect to solr directly without using the solr extension. The reason is performance as solr might be fast but a USER_INTas the solr ext is slow and shouldn't be placed on every page as menu.

changing values in DB not reflecting in solr

I have a solr search already implemented. It showing values in the UI. Working fine. The problem here is, if i change any data in the DB, it is not reflecting in the UI. It is showing the old values. What should i do?
Every time when you change something in DB you need to re-import data
http://localhost:8983/solr/your_core_name/dataimport?command=full-import
Make sure that handlder method is defined in solrconfig.xml
To reload a core (just in case)
I suppose you're using dataImportHandler
http://wiki.apache.org/solr/DataImportHandler
You can do it via GET method.
To reload a core: http://localhost:8983/solr/admin/cores?action=RELOAD&core=your_core_name
As suggested by "Oyeme" in above answer you should update the your core document once data is updated in db.
if your using solrj client then you can add or update document in core .
link to solrj documentation
You need to update your document through code once you updated your document when it get updated in db , do commit your changes to solr core .
for committing your changes use SolrServer.commit() method this will commit your changes to core and will appear in search.

How to update the data in solr

Trying to updating the solr document with below passed data
[{"id":"6","status":{"set":"3"}},
{"id":"10","status":{"set":"3"}}]
Throwing this error message :
"msg": "Expected: OBJECT_START but got ARRAY_START at [16]",
Please suggest a best way to update solr 4.0 document data with single url.
Quoting from lucene discussion page: Reference Link
The admin page accepts only a single JSON document to be added, because it wraps it in tags like so...
{"add":{ "doc": YOUR_TEXT_AREA_INPUT, ....
You can use the curl utility or post.jar for adding multiple document at the same time.
Reference for the updating solr document using curl . Updating a Solr Index with JSON

How to load the data into Solr from Kettle.?

Is there any way to load data into Solr from Kettle.?
I have tried some plug ins, but it does not seems to be working..
I want to index the data into Solr from Kettle. I want to give input as file/table/csv and output as Solr.. How this can be done.?
I have completed creating custom plugin to load the data into Solr. But, the problem now is, the HttpSolrServer class i have used is accpepting SolrInputDocument with one field only. Its throwing no such method error if the document has more than one field.

How to index new data with Solr 4.0 when the database is updated?

I have a database populated with fetched and parsed web pages. Does Solr know automatically which of the columns are updated to index only the changes? Or should i make my own java code or something else (like conf. changes) to check if there are any changes?

Resources