One possibility is to send to one of Solr's /update handlers from your page. It won't be straightforward unless you were POSTing a file to /update/extract, but it would be possible for a little bit of JavaScript onSubmit to format the data amenable to Solr.
I've not done this myself but it'd be a cute simple example. Solr's admin UI does have a way to add docs that you might want to use as one possible example, though it's lower level than form fields like you're desiring. Erik > On Oct 20, 2014, at 16:54, LongY <zhangyulin8...@hotmail.com> wrote: > > hello list, > > The functionality I would like to add the the existing /browse request > handler is using a user interface (e.g.,webform) to collect the user's > input. > > My approach is add a javascript form into the velocity template, below is > the code I added to the velocity > template(for example): > <form id="myForm", action="ProcessData.php"> > First name: <input type="text" name="fname" value=""><br> > Last name: <input type="text" name="lname" value=""><br> > </form> > > And I am using this ProcessData.php to process the user input to generate a > XML in the server. > > My question is > 1) how to make solr to run this ProcessData.php? It seems solr does not > support php? > 2) Where is this ProcessData.php going to be placed in the solr directory? > > I am a newbie in web programming. I tried very hard to catch up with it. > > Thank you. > > > > > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/javascript-form-data-save-to-XML-in-server-side-tp4165025.html > Sent from the Solr - User mailing list archive at Nabble.com.