+ Reply to Thread
Results 1 to 3 of 3

Thread: Lucene query

  1. #1
    ositaPower is offline Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Default Lucene query

    Hello!

    There is not a category for Lucene (or I havent seen it), so I will ask here
    I am learning how to build queries, and I would like to search every author but omit the author named "perez"
    I tried something like author:-perez and other ways like author:NOT perez..

    I am just curious how to do this. Any idea?
    Thanks!

  2. #2
    armandop is offline Member
    Join Date
    Nov 2008
    Location
    San Jose
    Posts
    35

    Default

    Humm,
    how about author:* AND NOT "perez"
    www.armando.ws
    Author: Beginning Zend Framework

  3. #3
    ositaPower is offline Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Default

    Yes thank you!

    Note: the quote marks in "perez" were not necessary

+ Reply to Thread

Similar Threads

  1. query->where and query->orWhere problem
    By moralless in forum Databases
    Replies: 1
    Last Post: 05-14-2010, 07:34 AM
  2. Problem with range query in Zend Lucene
    By shapeshed in forum Mail, Formats & Search
    Replies: 5
    Last Post: 11-10-2009, 02:49 PM
  3. Lucene: Query Constr. API: MultiTerm + highlighting in diff. colors
    By Mastershrimp in forum Mail, Formats & Search
    Replies: 0
    Last Post: 10-01-2009, 03:48 PM
  4. Lucene: How to transform user input into query - Best Practice?
    By Mastershrimp in forum Mail, Formats & Search
    Replies: 0
    Last Post: 10-01-2009, 03:43 PM
  5. Is it true that I don't have to prepare the query statment and query() alone will do
    By googling1000 in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 03-15-2009, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts