SolrNet.Exceptions.SolrConnectionException

161 views
Skip to first unread message

nilaani kanagaraj

unread,
Mar 24, 2021, 3:54:03 AM3/24/21
to SolrNet
When integrating SOLR and dot net Am getting following exception .Could anyone suggest me some ideas to resolve it.

**CODE**
using CommonServiceLocator;
using SolrNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solr8.Models;
using SolrNet.Commands.Parameters;

namespace Solr8
{
    class Program
    {
        static void Main(string[] args)
        {
            Startup.Init<Employee>("http://localhost:8983/solr/");
            ISolrOperations<Employee> solr = 
            ServiceLocator.Current.GetInstance<ISolrOperations<Employee>>();
            var result = solr.Query(new SolrQuery("*:*"));

           
        }
    }
}

**ERROR**

SolrNet.Exceptions.SolrConnectionException: '<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/solr//select</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>

</body>
</html>

Mauricio Scheffer

unread,
Mar 24, 2021, 7:15:56 AM3/24/21
to sol...@googlegroups.com
Hi, this means that Solr is not actually at http://localhost:8983/solr/ .
Maybe you have the URL path wrong.

--
Mauricio


--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/solrnet/f5e7ed96-70fb-4323-a4a4-443a7c536f86n%40googlegroups.com.

nilaani kanagaraj

unread,
Mar 24, 2021, 9:18:14 AM3/24/21
to sol...@googlegroups.com
image.png

can you please check the with the picture and tell me whats wrong with the url


Thanks

You received this message because you are subscribed to a topic in the Google Groups "SolrNet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/solrnet/Ci9oQYIXTzw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to solrnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/solrnet/CAF0_A3E%2BreQovr%3Dw1de%2B%3DF6TS%2BPY5XnMinKReCAmcYiDo4bdfA%40mail.gmail.com.

Pandurang Gokul Pailvan

unread,
Mar 24, 2021, 9:23:07 AM3/24/21
to sol...@googlegroups.com
Hi Nilani,
Please try with the below URL in your code.




--
Thanks & Regards,
Pandurang.G.Pailvan
MOB:9226718970

nilaani kanagaraj

unread,
Mar 25, 2021, 7:08:39 AM3/25/21
to SolrNet

It Worked Panduarang.G>Pailvan . Thanks.
Reply all
Reply to author
Forward
0 new messages