• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help From Those Who Are Good At Using Lucene In the Struts Application

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Lucene. I want to use lucene as the searching enging to look for articles that are stores in the database.
It is OKay to search articles in the database using "only one" pair of property/value as parameters in a method; for example:

********Property***************Value
*********author************Victor Hugo or .....
*********title*************Les Miserables or .....
********content***************whatever .....
**********id*********************168
visitors of the web site queries all articles in the database by selecting 'author' as the property and supply the name of the author (xyz) as value.
I am stuck because I need to pass additonal parameters rather than using one pair of property/value as parameters -- I have this field "category" in my database. I want to search and get all the articles written by author(property) with name xyz (value) within; say, the HISTORY category. The value of the category will be supplied by the application developer (NOT BY THE VISITOR of the web site via selecting from a drop-down list and fill out the value in the text field).
Is there a method signature available in Lucene to pass additional parameter as necessary? If not, how does Lucene handle this kind of situation. People say that Lucene is very flexible. Thanks in advance.
[ November 03, 2003: Message edited by: JiaPei Jen ]
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you should go and see the artimus exemple which uses lucene and should anwer to your question :how to pass additional parameters, as it does it
http://sourceforge.net/project/showfiles.php?group_id=49385
veronique
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Artimus_1_1 is exactly what I am working on. I am stuck because I want to modify the example somewhat. I want to pass additional parameters to the FindByProperty.java file and do not have enough knowledge to do it.
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic