Re: Lucene Search

2010-11-10 Thread David Crossley
Szabo, Patrick (LNG-VIE) wrote:
 
 I thought it was going to have something to do with xdoc-to-lucene.xsl but i 
 don't know how to implement new field in that stylesheet. I can see how the 
 other fields are stored but what i don't know how the xdoc version of my 
 files look so i can't extend the exsiting template. 
 
 I could just take a look at what the xml2xdoc stylesheet does but it would be 
 a lot easyer if i could take a look at an actual xdoc fileis there a way 
 to store those intermediate xdoc files ?!

Do 'forrest run' then request
localhost:/index.xml

See some other tips in
http://forrest.apache.org/howto-dev.html

Also perhaps see the main/webapp/search.xmap
which will show some other internal requests
that might be useful such as
localhost:/index.lucene

 I'm not very familiar with cocoon jet so that might be a dumb question.
 
 The pipeline goes like this: our xml (dita) - xdoc - html, pdf, ... Right ?!

Yes.

-David


AW: Lucene Search

2010-11-10 Thread Szabo, Patrick (LNG-VIE)
Thanks a lot David - your tipps have already helped me ^^

kind regards 


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 


-Urspr√ľngliche Nachricht-

Von: David Crossley [mailto:cross...@apache.org] 
Gesendet: Mittwoch, 10. November 2010 15:23
An: user@forrest.apache.org
Betreff: Re: Lucene Search

Szabo, Patrick (LNG-VIE) wrote:
 
 I thought it was going to have something to do with xdoc-to-lucene.xsl but i 
 don't know how to implement new field in that stylesheet. I can see how the 
 other fields are stored but what i don't know how the xdoc version of my 
 files look so i can't extend the exsiting template. 
 
 I could just take a look at what the xml2xdoc stylesheet does but it would be 
 a lot easyer if i could take a look at an actual xdoc fileis there a way 
 to store those intermediate xdoc files ?!

Do 'forrest run' then request
localhost:/index.xml

See some other tips in
http://forrest.apache.org/howto-dev.html

Also perhaps see the main/webapp/search.xmap
which will show some other internal requests
that might be useful such as
localhost:/index.lucene

 I'm not very familiar with cocoon jet so that might be a dumb question.
 
 The pipeline goes like this: our xml (dita) - xdoc - html, pdf, ... Right ?!

Yes.

-David




Re: Lucene Search for a range of dates

2010-11-10 Thread David Crossley
Szabo, Patrick (LNG-VIE) wrote:
  
 I'm probably using a quite old version of lucene. (where can i see which
 i'm using !?)

See
$FORREST_HOME/lib/core/lucene-1.4.3.jar

You might be able to upgrade just by replacing
that jar. Check the docs at lucene.apache.org

-David

 If the name of the .jar is the same as the version then I'm using 1.4.3.
  
 I want to search for files that have been modified between the
 21.06.2010 and the 24.06.2010.
 I know that there is a file with the value 23.06.2010 in the version
 field so that should show up in the resultlist. 
  
 I did the following:
  
 version:{21.06.2010 TO 24.06.2010}
  
 unfortunately Lucene gives me no results. 
  
 If I search for version:23.06.2010 I do get a few hits.
  
 Any ideas ?!
 
 Is there a way to use regex in lucene ?!
  
 Thanks in advance...
  
 kind regards
 
 . . . . . . . . . . . . . . . . . . . . . . . . . .
 Patrick Szabo
  XSLT-Entwickler 
 LexisNexis
 Marxergasse 25, 1030 Wien
 
 mailto:patrick.sz...@lexisnexis.at
 Tel.: +43 (1) 534 52 - 1573 
 Fax: +43 (1) 534 52 - 146 


Lucene Search for a range of dates

2010-11-09 Thread Szabo, Patrick (LNG-VIE)
Hi, 
 
I'm probably using a quite old version of lucene. (where can i see which
i'm using !?)
If the name of the .jar is the same as the version then I'm using 1.4.3.
 
I want to search for files that have been modified between the
21.06.2010 and the 24.06.2010.
I know that there is a file with the value 23.06.2010 in the version
field so that should show up in the resultlist. 
 
I did the following:
 
version:{21.06.2010 TO 24.06.2010}
 
unfortunately Lucene gives me no results. 
 
If I search for version:23.06.2010 I do get a few hits.
 
Any ideas ?!

Is there a way to use regex in lucene ?!
 
Thanks in advance...
 
kind regards

. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 







Lucene Search

2010-11-08 Thread Szabo, Patrick (LNG-VIE)
Hi, 
 
I'm new to Forrest and my boss in all it's wisdom decided that i have to
administrate our forrest installation now. 
I wasn't involved in our installation until now. 
 
I've already read the forrest documentation and it did help me, but
there are quite a few question that i couldn't answer.
 
I understand that i can use fields to search with lucene. Is there a
list somewhere where i can see which fields are available ?!
Can i somehow add fields ?! 
We have an element revised modified=23.06.2010/ in our source xml
and i would like to be able to serch for the date. E.g. i want to see
all the documents that where modified last week.

I've got a few more questions but i don't want to pack them all in just
one mail.

I hope you guys can help me !

Thanks in advance...

Kind regards


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 

http://shop.lexisnexis.at/
http://shop.lexisnexis.at/



Re: Lucene Search

2010-11-08 Thread Tim Williams
On Mon, Nov 8, 2010 at 7:25 AM, Szabo, Patrick (LNG-VIE)
patrick.sz...@lexisnexis.at wrote:
 Hi,

 I'm new to Forrest and my boss in all it's wisdom decided that i have to
 administrate our forrest installation now.
 I wasn't involved in our installation until now.

 I've already read the forrest documentation and it did help me, but
 there are quite a few question that i couldn't answer.

Yeah, in trying to answer your question I realize that the
documentation in this area is weak.  After you understand this stuff,
it'd be great if you could contribute to them.

 I understand that i can use fields to search with lucene. Is there a
 list somewhere where i can see which fields are available ?!

For any given document, you can add a .lucene extension and the
element names are the searchable field names.  These are mostly title,
subtitle, abstract, version, author, and content.

 Can i somehow add fields ?!

I don't think there's a way to add per-project fields, but for you
Forrest implementation, you can try to add it into
$FORREST_HOME/main/webapp/resources/stylesheets/xdoc-to-lucene.xsl

 We have an element revised modified=23.06.2010/ in our source xml
 and i would like to be able to serch for the date. E.g. i want to see
 all the documents that where modified last week.

Hmm... I'm not sure, I reckon you'd have to index it based on its xdoc
equivalent.

 I've got a few more questions but i don't want to pack them all in just
 one mail.

Yeah, one per thread is always preferred - mail threads are cheap though:)

I'm not sure what version of Forrest you are on but I had to do some
hacking just to get the indexing to work - I reckon it's been a
long-standing bug.  I'll take that up on the dev@ list though.  Good
luck!

--tim


need help on lucene search

2008-01-18 Thread manojm_singh

Hi i am able to perform lucene search in my developed intranet. but not
fully.I am facing following problem

I have a directry like : Human Resource\Forms\ and in Forms directry i
have an excel file say myExcel.xl  So when i am trying to search this file
with text myExcel it is showing me Forms and then when i clicked Forms
link then only its displaying the myExcel.xl file where as it should
display directly myExcel.xl file. How to do that? Ples help

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/need-help-on-lucene-search-tp14948038p14948038.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.



Re: Lucene search - no pipeline matched request

2007-11-06 Thread Thorsten Scherler
On Mon, 2007-11-05 at 16:25 +0100, Petr Juza wrote:
 Hello,
 I'm able to generate static site and it works quite well. But I'm not able to 
 add Lucene fulltext support.
 
 When I call at command line forrest war or forrest run and then I call 
 /lucene-update.htm, I get the following error:
 
 cocoon 2.2.0-dev
 Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
 Build: December 8 2005 (TargetVM=1.4, SourceVM=1.4, Debug=on, Optimize=on)
 
 X [0] lucene-update.htmlBROKEN: No 
 pipel
 ine matched request: lucene
 Total time: 0 minutes 7 seconds,  Site size: 0 Site pages: 0
 
 BUILD FAILED
 D:\downloads\apache-forrest-0.8\main\targets\webapp.xml:48: The following 
 error
 occurred while executing this line:
 D:\downloads\apache-forrest-0.8\main\targets\context.xml:127: Java returned: 1
 
 
 I can't use google fulltext because our website is for intranet only. I would 
 please appreaciate any help.

Hi Peter,

what skin are you using?

salu2

 
 PETER
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java  consulting, training and solutions



Re: Lucene search - no pipeline matched request

2007-11-06 Thread Thorsten Scherler
On Tue, 2007-11-06 at 11:32 +0100, Thorsten Scherler wrote:
 On Mon, 2007-11-05 at 16:25 +0100, Petr Juza wrote:
  Hello,
  I'm able to generate static site and it works quite well. But I'm not able 
  to 
  add Lucene fulltext support.
  
  When I call at command line forrest war or forrest run and then I call 
  /lucene-update.htm, I get the following error:
  
  cocoon 2.2.0-dev
  Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
  Build: December 8 2005 (TargetVM=1.4, SourceVM=1.4, Debug=on, Optimize=on)
  
  X [0] lucene-update.htmlBROKEN: No 
  pipel
  ine matched request: lucene
  Total time: 0 minutes 7 seconds,  Site size: 0 Site pages: 0
  
  BUILD FAILED
  D:\downloads\apache-forrest-0.8\main\targets\webapp.xml:48: The following 
  error
  occurred while executing this line:
  D:\downloads\apache-forrest-0.8\main\targets\context.xml:127: Java 
  returned: 1
  
  
  I can't use google fulltext because our website is for intranet only. I 
  would 
  please appreaciate any help.
 
 Hi Peter,
 
 what skin are you using?

Hmm I just tried on our site-author and see the same error with forrest
run.

http://localhost:/index.lucene

Is working fine.

http://localhost:/index-creation.lucene

Request URI: index-creation.lucene
cause: No pipeline matched request: lucene

Commenting the transfomer map:transform
src={lm:transform.book.cinclude-lucene} will return xml again.

Meaning something wrong with lm:transform.book.cinclude-lucene because
commenting the cinclude transformer I can find cinclude:include
src=cocoon://lucene/, which is causing above error.

I do not time ATM to debug the book-to-include-lucene.xsl, but the bug
is in there somewhere.

salu2

 
 salu2
 
  
  PETER
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java  consulting, training and solutions



Lucene search - no pipeline matched request

2007-11-05 Thread Petr Juza

Hello,
I'm able to generate static site and it works quite well. But I'm not able to 
add Lucene fulltext support.


When I call at command line forrest war or forrest run and then I call 
/lucene-update.htm, I get the following error:


cocoon 2.2.0-dev
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
Build: December 8 2005 (TargetVM=1.4, SourceVM=1.4, Debug=on, Optimize=on)

X [0] lucene-update.htmlBROKEN: No pipel
ine matched request: lucene
Total time: 0 minutes 7 seconds,  Site size: 0 Site pages: 0

BUILD FAILED
D:\downloads\apache-forrest-0.8\main\targets\webapp.xml:48: The following error
occurred while executing this line:
D:\downloads\apache-forrest-0.8\main\targets\context.xml:127: Java returned: 1


I can't use google fulltext because our website is for intranet only. I would 
please appreaciate any help.


PETER