You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ahmed Hammad <ah...@gmail.com> on 2008/12/13 16:28:38 UTC

DIH Admin Page Commands

Hi,

I would like to add a few utility commands to the DIH admin page. I
frequently need these commands to manage the index. The commands are: full
Import, delta Import, status, reload config, ... In addition to "Return to
Admin Page" link.

It will be a simple forms at the end of debug.jsp as following:

<form action="../dataimport" target="result" method="get">
    <input type="hidden" name="clean" value="false">
    <input type="hidden" name="commit" value="true">
    <input class="stdbutton" type="submit" name="command"
value="full-import">
    <input class="stdbutton" type="submit" name="command"
value="delta-import">
    <input class="stdbutton" type="submit" name="command" value="status">
    <input class="stdbutton" type="submit" name="command"
value="reload-config">
    <input class="stdbutton" type="submit" name="command" value="abort">
</form>

<form action="../select" target="result" method="get">
    <input type="hidden" name="q" value="*:*">
    <input type="hidden" name="start" value="0">
    <input type="hidden" name="rows" value="0">
    <input class="stdbutton" type="submit" value="Documents Count">
</form>

<form action="../dataimport" target="result" method="get">
    <input type="hidden" name="verbose" value="true">
    <input type="hidden" name="clean" value="true">
    <input type="hidden" name="commit" value="true">
    <input type="hidden" name="command" value="full-import">
    <input class="stdbutton" type="submit" value="Full Import with
Cleaning">
</form>

<a href="index.jsp" target="_parent">Return to Admin Page</a>

----

What do you think? I would like to know if there exist better ways.


Regards,
Ahmed

Re: DIH Admin Page Commands

Posted by Ahmed Hammad <ah...@gmail.com>.
Thanks for your feedback :-)

Sure, I will open issue and attach a patch.

Best wishes,
Ahmed


On Sat, Dec 13, 2008 at 7:44 PM, Shalin Shekhar Mangar <
shalinmangar@gmail.com> wrote:

> Thanks for the suggestions. I'm sure these will be useful to a lot of
> users.
> Do you mind opening an issue in Jira? If you have a patch, that'd be
> awesome
> :-)
>
> On Sat, Dec 13, 2008 at 8:58 PM, Ahmed Hammad <ah...@gmail.com> wrote:
>
> > Hi,
> >
> > I would like to add a few utility commands to the DIH admin page. I
> > frequently need these commands to manage the index. The commands are:
> full
> > Import, delta Import, status, reload config, ... In addition to "Return
> to
> > Admin Page" link.
> >
> > It will be a simple forms at the end of debug.jsp as following:
> >
> > <form action="../dataimport" target="result" method="get">
> >    <input type="hidden" name="clean" value="false">
> >    <input type="hidden" name="commit" value="true">
> >    <input class="stdbutton" type="submit" name="command"
> > value="full-import">
> >    <input class="stdbutton" type="submit" name="command"
> > value="delta-import">
> >    <input class="stdbutton" type="submit" name="command" value="status">
> >    <input class="stdbutton" type="submit" name="command"
> > value="reload-config">
> >    <input class="stdbutton" type="submit" name="command" value="abort">
> > </form>
> >
> > <form action="../select" target="result" method="get">
> >    <input type="hidden" name="q" value="*:*">
> >    <input type="hidden" name="start" value="0">
> >    <input type="hidden" name="rows" value="0">
> >    <input class="stdbutton" type="submit" value="Documents Count">
> > </form>
> >
> > <form action="../dataimport" target="result" method="get">
> >    <input type="hidden" name="verbose" value="true">
> >    <input type="hidden" name="clean" value="true">
> >    <input type="hidden" name="commit" value="true">
> >    <input type="hidden" name="command" value="full-import">
> >    <input class="stdbutton" type="submit" value="Full Import with
> > Cleaning">
> > </form>
> >
> > <a href="index.jsp" target="_parent">Return to Admin Page</a>
> >
> > ----
> >
> > What do you think? I would like to know if there exist better ways.
> >
> >
> > Regards,
> > Ahmed
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Re: DIH Admin Page Commands

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Thanks for the suggestions. I'm sure these will be useful to a lot of users.
Do you mind opening an issue in Jira? If you have a patch, that'd be awesome
:-)

On Sat, Dec 13, 2008 at 8:58 PM, Ahmed Hammad <ah...@gmail.com> wrote:

> Hi,
>
> I would like to add a few utility commands to the DIH admin page. I
> frequently need these commands to manage the index. The commands are: full
> Import, delta Import, status, reload config, ... In addition to "Return to
> Admin Page" link.
>
> It will be a simple forms at the end of debug.jsp as following:
>
> <form action="../dataimport" target="result" method="get">
>    <input type="hidden" name="clean" value="false">
>    <input type="hidden" name="commit" value="true">
>    <input class="stdbutton" type="submit" name="command"
> value="full-import">
>    <input class="stdbutton" type="submit" name="command"
> value="delta-import">
>    <input class="stdbutton" type="submit" name="command" value="status">
>    <input class="stdbutton" type="submit" name="command"
> value="reload-config">
>    <input class="stdbutton" type="submit" name="command" value="abort">
> </form>
>
> <form action="../select" target="result" method="get">
>    <input type="hidden" name="q" value="*:*">
>    <input type="hidden" name="start" value="0">
>    <input type="hidden" name="rows" value="0">
>    <input class="stdbutton" type="submit" value="Documents Count">
> </form>
>
> <form action="../dataimport" target="result" method="get">
>    <input type="hidden" name="verbose" value="true">
>    <input type="hidden" name="clean" value="true">
>    <input type="hidden" name="commit" value="true">
>    <input type="hidden" name="command" value="full-import">
>    <input class="stdbutton" type="submit" value="Full Import with
> Cleaning">
> </form>
>
> <a href="index.jsp" target="_parent">Return to Admin Page</a>
>
> ----
>
> What do you think? I would like to know if there exist better ways.
>
>
> Regards,
> Ahmed
>



-- 
Regards,
Shalin Shekhar Mangar.