Re: Help: Creating another handler and template to display document attributes

2012-02-02 Thread Erik Hatcher
t; >> spellcheck >> >> >> >> >> >> >> details.vm >> = >> #set($doc= $response.results.get(0)) >> $doc.getFieldValue('Entrez >> ID') >&

Re: Help: Creating another handler and template to display document attributes

2012-02-02 Thread Yuhao
> > > details.vm > = > #set($doc= $response.results.get(0)) > $doc.getFieldValue('Entrez > ID') > > #foreach($fieldname in $doc.fieldNames) > > $fieldname: > > #foreach($value in $doc.getFieldValues($fieldname)) > $esc.html($value) > #end > >

Re: Help: Creating another handler and template to display document attributes

2012-02-02 Thread Erik Hatcher
gt; #set($doc= $response.results.get(0)) > $doc.getFieldValue('Entrez > ID') > > #foreach($fieldname in $doc.fieldNames) > > $fieldname: > > #foreach($value in $doc.getFieldValues($fieldname)) > $esc.html($value) > #end > > > #e

Re: Help: Creating another handler and template to display document attributes

2012-02-02 Thread Yuhao
name)) $esc.html($value) #end #end From: Erik Hatcher To: solr-user@lucene.apache.org Sent: Wednesday, February 1, 2012 8:26 PM Subject: Re: Help: Creating another handler and template to display document attributes I'm not following exactly what you

Re: Help: Creating another handler and template to display document attributes

2012-02-01 Thread Erik Hatcher
I'm not following exactly what you're after here in detail, but I think this will help: See slides 24 and 25. Note the use of $id in the /document request handler definition using parameter substitution, a really co

Help: Creating another handler and template to display document attributes

2012-02-01 Thread Yuhao
Like the title says, I want to create a "page" to display a bunch of document attributes.  I accomplished this by creating a new handler and a template for it.  However, I'm having trouble pulling up the details of the document in the new handler.  Here's my code.  Is this a good way to do it?