FAQ
Your Syntax seems to be wrong; try
Author:Williams AND Title:Sword - Title:House
or
Author:Williams AND Title:Sword NOT Title:House

Michael

-----Ursprüngliche Nachricht-----
Von: Pierre Lacchini
Gesendet: Montag, 17. März 2003 10:47
An: Lucene (E-mail)
Betreff: About Query...


Well guys, here's my (silly) question :

I got 2 Fields in my Index, for example Title and Author...

If i want to perform a complex query like : search "Williams" in fields
"Author" AND "Sword" in fields "Title" WITHOUT "House" in the fields
"Title"....
I tried this synthax : "Author:Williams AND Title:Sword -House" But it
doesnt'seem to work...
Is it possible ? Or mb i'm wrong with the synthax ???

Thx for help ;)

Pierre Lacchini
Consultant développement

PeopleWare
12, rue du Cimetière
L-8413 Steinfort
Phone : + 352 399 968 35
http://www.peopleware.lu




---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Search Discussions

  • Borkenhagen, Michael (ofd-ko zdfin) at Mar 17, 2003 at 11:06 am
    Yes for sure,
    Maybe I don´t understand your question ?

    -----Ursprüngliche Nachricht-----
    Von: Pierre Lacchini
    Gesendet: Montag, 17. März 2003 12:26
    An: 'Lucene Users List'
    Betreff: RE: About Query...


    Yeah thx Michael, now it works fine :)

    But in this case, does the second argument of method parse(String query,
    String field, Analyser analyser) of the QueryParser matter ?

    -----Original Message-----
    From: Borkenhagen, Michael (ofd-ko zdfin)

    Sent: lundi 17 mars 2003 12:01
    To: 'Lucene Users List'
    Subject: AW: About Query...


    Your Syntax seems to be wrong; try
    Author:Williams AND Title:Sword - Title:House
    or
    Author:Williams AND Title:Sword NOT Title:House

    Michael

    -----Ursprüngliche Nachricht-----
    Von: Pierre Lacchini
    Gesendet: Montag, 17. März 2003 10:47
    An: Lucene (E-mail)
    Betreff: About Query...


    Well guys, here's my (silly) question :

    I got 2 Fields in my Index, for example Title and Author...

    If i want to perform a complex query like : search "Williams" in fields
    "Author" AND "Sword" in fields "Title" WITHOUT "House" in the fields
    "Title"....
    I tried this synthax : "Author:Williams AND Title:Sword -House" But it
    doesnt'seem to work...
    Is it possible ? Or mb i'm wrong with the synthax ???

    Thx for help ;)

    Pierre Lacchini
    Consultant développement

    PeopleWare
    12, rue du Cimetière
    L-8413 Steinfort
    Phone : + 352 399 968 35
    http://www.peopleware.lu




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org
  • Borkenhagen, Michael (ofd-ko zdfin) at Mar 17, 2003 at 11:29 am
    mmmh ... good question - i really don´t know :(

    -----Ursprüngliche Nachricht-----
    Von: Pierre Lacchini
    Gesendet: Montag, 17. März 2003 12:32
    An: 'Lucene Users List'
    Betreff: RE: About Query...


    sorry for my poor english...

    Well if i perform a Multiple Fields query... Why do I have to specify the
    name of the field in the parse method ?
    Because i'm using 2 field in the query...



    -----Original Message-----
    From: Borkenhagen, Michael (ofd-ko zdfin)

    Sent: lundi 17 mars 2003 12:07
    To: 'Lucene Users List'
    Subject: AW: About Query...


    Yes for sure,
    Maybe I don´t understand your question ?

    -----Ursprüngliche Nachricht-----
    Von: Pierre Lacchini
    Gesendet: Montag, 17. März 2003 12:26
    An: 'Lucene Users List'
    Betreff: RE: About Query...


    Yeah thx Michael, now it works fine :)

    But in this case, does the second argument of method parse(String query,
    String field, Analyser analyser) of the QueryParser matter ?

    -----Original Message-----
    From: Borkenhagen, Michael (ofd-ko zdfin)

    Sent: lundi 17 mars 2003 12:01
    To: 'Lucene Users List'
    Subject: AW: About Query...


    Your Syntax seems to be wrong; try
    Author:Williams AND Title:Sword - Title:House
    or
    Author:Williams AND Title:Sword NOT Title:House

    Michael

    -----Ursprüngliche Nachricht-----
    Von: Pierre Lacchini
    Gesendet: Montag, 17. März 2003 10:47
    An: Lucene (E-mail)
    Betreff: About Query...


    Well guys, here's my (silly) question :

    I got 2 Fields in my Index, for example Title and Author...

    If i want to perform a complex query like : search "Williams" in fields
    "Author" AND "Sword" in fields "Title" WITHOUT "House" in the fields
    "Title"....
    I tried this synthax : "Author:Williams AND Title:Sword -House" But it
    doesnt'seem to work...
    Is it possible ? Or mb i'm wrong with the synthax ???

    Thx for help ;)

    Pierre Lacchini
    Consultant développement

    PeopleWare
    12, rue du Cimetière
    L-8413 Steinfort
    Phone : + 352 399 968 35
    http://www.peopleware.lu




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMar 17, '03 at 11:00a
activeMar 17, '03 at 11:29a
posts3
users1
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase