lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Girish Pandit <>
Subject "SELECT" on a Rich Document to download/display content
Date Mon, 26 Jul 2010 04:10:49 GMT

I indexed a word document, when I do select, it shows the file name. How 
can I display content? also if I add "hl=true", is this going to show me 
the line with the highlight from the word document?

I am using below URL to do select:


it shows Response like below:
<lst name="responseHeader"><int name="status">0</int><int 
name="QTime">1</int><lst name="params"><str 
name="q">Management</str></lst></lst><result name="response" 
numFound="1" start="0"><doc><str name="id">Mgmt.doc</str></doc></result>

Indexing was done with below Java code:

    public void SolrCellRequestDemo() throws IOException, 
SolrServerException {
            SolrServer server = new 
            ContentStreamUpdateRequest req = new 
            req.addFile(new File("/Users/Girish/Development/Web 
            req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
            req.setParam("", "Mgmt.doc");
            NamedList<Object> result = server.request(req);
            System.out.println("Result: " + result);

View raw message