Connection Time out Issue

2014-06-23 Thread Venkata krishna
Hi,

In my project we need to index millon files, but connection time out
problems are coming after completion  of indexing 1000 to 2000 files.
 
What connection values would be preferred to  inject for the solrserver
object  to avoid connection problems ?

solrServer.setDefaultMaxConnectionsPerHost(-);

solrServer.setMaxTotalConnections(-);

solrServer.setSoTimeout(-); 

solrServer.setConnectionTimeout(-);

i have checked many sites about description of those methods, i have not get
and brief  information about those yet.

So could you please provide any link for to describe those methods ,
preferred values for those methods for to index millons of documents with
out getting any exception.


Thanks ,

Venkata Krishna Tolusuri.












--
View this message in context: 
http://lucene.472066.n3.nabble.com/Connection-Time-out-Issue-tp4143473.html
Sent from the Solr - User mailing list archive at Nabble.com.


Formatting Issue

2014-06-23 Thread Venkata krishna
Hi,
 
I am indexing RTF documents, but  in  search results i am not getting same
format of text as indexed RTF document's text. 

I would like to get same format of text in search result.

So could you please provide me any suggestion to resolve this formatting
problem.




Thanks,

Venkata krishna Tolusuri.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Formatting-Issue-tp4143371.html
Sent from the Solr - User mailing list archive at Nabble.com.


Query Response in Html

2014-06-19 Thread Venkata krishna
Hi,

I am using XSLResponseWriter on my application for to transform xml response
into html.The following params i have set for that purpose.
 
query.set("wt", "xslt");
query.set("indent","true");
query.set("tr", "example.xsl");

but the response is coming as normal text.Even though i remove the params
the response is coming same as  previous with out any change.

I have also tried with  velocity Response writer also by setting the
following params.
query.set("wt", "velocity");
query.set("v.template","browse");
query.set("v.layout", "layout");

then also i am getting same response as normal text.

I would like to get html response.

So could you please provide any solution.


Thanks,

Venkata Krishna Tolusuri.
 











--
View this message in context: 
http://lucene.472066.n3.nabble.com/Query-Response-in-Html-tp4142838.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Converting XML response of Search query into HTML.

2014-06-18 Thread Venkata krishna
Hi Erik,

I have tried by removing '&' and i got response as in text format but i
don't want response in text form. We need to get response as in html form
with out any exception(Expected mime type application/xml but got
text/html).So could you please provide any suggestion.

Thanks,

venkata krishna tolusuri.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Converting-XML-response-of-Search-query-into-HTML-tp4141456p4142546.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Converting XML response of Search query into HTML.

2014-06-18 Thread Venkata krishna
Thanks  for quick responses,

 Ahemt , i  have tried by removing ampersand then xml response has not
converted to html response it is in just xml only.

Erik , according to  your suggestion  i used VelocityResponseWriter.
like this manner
query.set("&wt", "velocity");
query.set("&v.template","browse");
query.set("&v.layout", "layout");
then also it is throwing same exception as previous
Exception in thread "main"
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
Expected mime type application/xml but got text/html. 
at
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:516)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)


but when i do searching  through solr admin interface then  response is
converted to html.
1. using XslResponseWriter

http://localhost:8983/solr/collection1/select?q=coby&df=text&wt=xslt&indent=true&tr=example.xsl&hl=true&hl.fl=content&hl.fragsize=1000&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E

2. using VelocityResponseWriter

http://localhost:8983/solr/collection1/select?q=coby&wt=velocity&indent=true&v.template=browse&v.layout=layout&hl=true&hl.fl=content&hl.fragsize=1000&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E

It seems like coding issue of solrj (HttpSolrServer class).


so could you please provide me suggestions.

Thanks,

Venkata krishna Tolusuri.
 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Converting-XML-response-of-Search-query-into-HTML-tp4141456p4142490.html
Sent from the Solr - User mailing list archive at Nabble.com.


Highlights in Query response

2014-06-16 Thread Venkata krishna
Hi,

Is there any option for to integrate highlights in query response instead of
showing query response and highlighted snippets separately?

if possible then could you please provide an  example or sample code for
showing highlights in query response.


Thanks, 

Venkata krishna Tolusuri.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlights-in-Query-response-tp4142030.html
Sent from the Solr - User mailing list archive at Nabble.com.


Converting XML response of Search query into HTML.

2014-06-12 Thread Venkata krishna
Hi,

I am using solr4.8, solrj  for to do searching, would like to get response
of search query in html format,for that purpose i have written this code, 
private static final String urlString = "http://localhost:8983/solr";;
private SolrServer solrServer; 
public SolrJ() {  
if (solrServer == null) { 
solrServer = new HttpSolrServer(urlString);   

}
}  

public QueryResponse getRueryResponse(String queryString) { 
SolrQuery query = new SolrQuery();  
query.setHighlight(true).setHighlightSnippets(20); //set other 
params as
needed
query.setParam("hl.fl", "content");
query.setQuery(queryString);
query.set("&wt", "xslt");
query.set("&indent",true);
query.set("&tr", "example.xsl");
   
   
QueryResponse queryResponse = null;
try { 
((HttpSolrServer) solrServer).setParser(new 
XMLResponseParser());
queryResponse = solrServer.query(query);
} catch (SolrServerException e) {
e.printStackTrace();   
}   return queryResponse; 
}
and in example.xsl media type is  
.

but i am getting an exception
Exception in thread "main"
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
Expected mime type application/xml but got text/html.

So could you please provide any solution to resolve issue.


Thanks,

Venkata Krishna Tolusuri.


  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Converting-XML-response-of-Search-query-into-HTML-tp4141456.html
Sent from the Solr - User mailing list archive at Nabble.com.


Indexing Files Month by Month

2014-06-12 Thread Venkata krishna
Hi ,

I am using lucene solr , would like to use Data import handler for to index
files but millions of files are there to import so indexing process will
take more time. I decided to import files month by month,so could you please
provide an suggestion  to import files month by month basis.








Thanks,

Venkata Krishna Tolusuri.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Indexing-Files-Month-by-Month-tp4141443.html
Sent from the Solr - User mailing list archive at Nabble.com.