[Egothor-tech] Egothor installation and configuration on Tomcat - WHERE TO PLACE my INDEX?

Daniel lingster at lingster.com
Thu Sep 9 00:52:13 BST 2004


Hello,

 I have tried to index my local documents (actually using Egothor JavaDoc
pages generated by ANT DOCS tasks and located in the /etc/api/...

I created index using ANT task:  ant -f tasks.xml index-local
- it created an index subdirectory with this contents:

-bash-2.05b$ ls -l 3 <=== this is a folder containing index files below
total 104
-rw-r--r--  1 daniel lingster    12 Sep  3 14:27 doc.btm
-rw-r--r--  1 daniel lingster 25735 Sep  3 14:27 doc.dta
-rw-r--r--  1 daniel lingster   576 Sep  3 14:27 doc.idx
-rw-r--r--  1 daniel lingster    41 Sep  3 14:27 doc.mta
-rw-r--r--  1 daniel lingster 18532 Sep  3 14:27 ils.dta
-rw-r--r--  1 daniel lingster   104 Sep  3 14:27 properties
-rw-r--r--  1 daniel lingster 15284 Sep  3 14:27 prx.dta
-rw-r--r--  1 daniel lingster 14377 Sep  3 14:27 trm.dta
-rw-r--r--  1 daniel lingster  6795 Sep  3 14:27 trm.idx
-bash-2.05b$ ls
3  state

Attached is my version of build.properties files - just for reference.

Now - do I have to just copy that whole "index" folder into my
$TOMCAT_HOME/webapps/egothor/  folder  and change a reference to it in the
find.jsp page - like:

 <ego:open   directory="../index">  <== provided that index folder is one
level up from

   <ego:execute length="10" offset="<%=offset%>" webspace="empty"
query="<%=q+extra%>">

 <% org.egothor.data.QueryResponse qr = (org.egothor.data.QueryResponse)
pageContext.getAttribute("ego.result");
            org.egothor.util.Snippy snipp = null;
            if (qr!=null)
                if (qr.queryTokens()!=null) {
                    String[] a = qr.queryTokens();
                    for (int i=0;i<a.length;i++) {
           if (a[i].startsWith("<SRC>") || a[i].startsWith("<!")) { } else {
                        a[i]=a[i].substring(a[i].indexOf('>')+1);
           }
                }
            snipp = new org.egothor.util.Snippy( a );
             }
        %>
        <small>
        <ego:status file="<%="xslt/response."+l%>"></ego:status>
        </small>
        <ego:forEach>

So that the page will "know" wher to look for the created indexes in the
"../index" directory?

Many thanks,
Daniel
> Hi Daniel!
>
> Daniel wrote:
>>
>> -bash-2.05b$ ls -l egothor/en
>> total 32
>> -rw-r--r--  1 root root 1305 Sep  1 19:08 about.html
>> -rw-r--r--  1 root root 3292 Sep  1 19:08 error.jsp
>> -rw-r--r--  1 root root 3717 Sep  1 19:08 find.jsp
>> -rw-r--r--  1 root root 5142 Sep  1 19:08 help.html
>> -rw-r--r--  1 root root 5213 Sep  1 19:08 index.html
>> -rw-r--r--  1 root root 1006 Sep  1 19:08 xml.jsp
>> -bash-2.05b$ clear
>>
>> -bash-2.05b$ ls -l egothor/en
>> total 32
>> -rw-r--r--  1 root root 1305 Sep  1 19:08 about.html
>> -rw-r--r--  1 root root 3292 Sep  1 19:08 error.jsp
>> -rw-r--r--  1 root root 3717 Sep  1 19:08 find.jsp
>> -rw-r--r--  1 root root 5142 Sep  1 19:08 help.html
>> -rw-r--r--  1 root root 5213 Sep  1 19:08 index.html
>> -rw-r--r--  1 root root 1006 Sep  1 19:08 xml.jsp
>> -bash-2.05b$ ls -l egothor
>> total 20
>> drwxr-xr-x  2 root root 4096 Sep  1 19:08 en
>> -rw-r--r--  1 root root  278 Sep  1 19:08 index.html
>> drwxr-xr-x  2 root root 4096 Sep  1 19:08 META-INF
>> drwxr-xr-x  4 root root 4096 Sep  1 19:08 WEB-INF
>> drwxr-xr-x  2 root root 4096 Sep  1 19:08 xslt
>> -bash-2.05b$ ls -l egothor/WEB-INF/
>> total 12
>> drwxr-xr-x  3 root root 4096 Sep  1 19:08 classes
>> -rw-r--r--  1 root root 3170 Sep  1 19:08 egothor.tld
>> drwxr-xr-x  2 root root 4096 Sep  1 19:08 lib
>> -bash-2.05b$ ls -l egothor/WEB-INF/lib
>> total 488
>> -rw-r--r--  1 root root 492613 Sep  1 19:08 egothor-1.2.6.jar
>> -bash-2.05b$ ls -l egothor/WEB-INF/classes
>> total 4
>> drwxr-xr-x  2 root root 4096 Sep  1 19:08 egothor
>> -bash-2.05b$ ls -l egothor/WEB-INF/classes/egothor/
>> total 24
>> -rw-r--r--  1 root root 2997 Sep  1 19:08 ExecuteTag.class
>> -rw-r--r--  1 root root 3046 Sep  1 19:08 ExecuteXMLTag.class
>> -rw-r--r--  1 root root 1848 Sep  1 19:08 ForEachTag.class
>> -rw-r--r--  1 root root 3319 Sep  1 19:08 NavBarTag.class
>> -rw-r--r--  1 root root 2072 Sep  1 19:08 OpenTag.class
>> -rw-r--r--  1 root root 4073 Sep  1 19:08 StatusTag.class
>> -bash-2.05b$
>
> This seems to be OK.
>
>>
>> I do se the find.jsp page and I see the following refeence to index in
there:
>>
>>  <ego:open directory="/disk2/index/dundee">
>
> OK, rewrite it here.
>
>>  <ego:execute length="10" offset="<%=offset%>" webspace="empty"
>> query="<%=q+extra%>">
>>  - but I don't think the ANT process has created "index" folder anywhere
>> and I have nowhere to point to.
>
> The index must be created from the data you have obtained from the
network using Capek. When you are finished with Capek, you must use
Michelangelo to create the index. It will be created in the same
directory whe corpus, scheduler, ... are stored. Then, just copy the
whole directory "index" somewhere and that's it :-)
>
> Running Michelangelo is described in the documentation, just after Capek
docs.
>
>>
>>  Do you know if there's a separate ANT process that creates an index
>> folder for you soomewhere in your server's filesystem and how that can be
>> called?
>
> Yes, I think that it can also be called via Ant. Look for the file
tasks.xml and try to find a target called Michelangelo, or something
like that. Then, type:
>
> ant -f tasks.xml michelangelo
>
> But I have never tried it, I prefer running Michelangelo directly. It is
also shown on my screenshots so have a look at them.
>
> Hope this helps :-)
>
> Regards, Jarda
>
>
>>
>>  Spasibo BOL"SHOE :)
>>
>>  Daniel Zilberman
>
>
> --
> Jaroslav Kačer  jkacer at kiv.zcu.cz  http://home.zcu.cz/~jkacer
> University of West Bohemia, Faculty of Applied Sciences
> Department of Computer Science and Engineering
> Pilsen, Czech Republic
> Member of the Czech OS/2 User Group  http://www.os2.cz
>


=================================================
Daniel Zilberman,
LINGSTER project
www.lingster.com


=================================================
Daniel Zilberman,
LINGSTER project
www.lingster.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.properties
Type: application/octet-stream
Size: 2094 bytes
Desc: not available
Url : http://egothor.org/pipermail/egothor-tech/attachments/20040908/86823a74/build.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.properties
Type: application/octet-stream
Size: 2094 bytes
Desc: not available
Url : http://egothor.org/pipermail/egothor-tech/attachments/20040908/86823a74/build-0001.obj


More information about the Egothor-tech mailing list