Results 1 to 2 of 2
  1. #1
    virendra is offline Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    0

    Unhappy Lucene search problem with comman words and composite query

    Hi,
    I am facing some strange problem in lucene search.
    My lucene document has three field
    1. name
    2. description
    3. themeid

    i am creating my indexes with these three fields.
    I have these scenario in serach.
    User can enter any theme and common word to search a document.
    so the query is 12_theme and a
    where 12_theme is theme id and a is common word.
    This work fine serach result will give me all the results which have theme id 12_theme and contains a in their text part.

    But problem occurs when i searched for all themes and common word a
    ex search query is a
    So no theme is specified this doesn't give me any result.
    But if i queried for a valid name other than the common words like "badger"
    It gives me the document who has name index "badger".
    I don't know why it is happening in case of all theme search lucene is ignoring common words(a,is,was etc).
    But with specific theme its working.
    Please help me in this matter.
    Regards
    Virendra

  2. #2
    Ervin is offline Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    0

    Default Lucene search problem with comman words and composite query

    You need to check your stopwords; this is much easier in Solr than Lucene, take a look at
    Stop Filter - Search by Lucid Imagination

    Hope this helps.

    cheers
    Ervin

Similar Threads

  1. Java Search Query Question
    By tek0011 in forum New To Java
    Replies: 2
    Last Post: 12-02-2009, 12:37 AM
  2. Replies: 0
    Last Post: 11-17-2009, 02:58 PM
  3. composite-id problem hibernate
    By javadev in forum JDBC
    Replies: 14
    Last Post: 07-27-2009, 07:30 PM
  4. Replies: 0
    Last Post: 06-28-2009, 02:10 AM
  5. Need help in lucene with hibernate search
    By gopalbisht in forum Java Software
    Replies: 1
    Last Post: 04-20-2009, 02:54 PM

Tags for this Thread

Posting Permissions

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