Results 1 to 2 of 2
- 01-05-2010, 02:27 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
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
- 01-21-2010, 12:40 PM #2
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
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
-
Java Search Query Question
By tek0011 in forum New To JavaReplies: 2Last Post: 12-01-2009, 11:37 PM -
Lucene Not Throwing Matches When Search String Is Without Space
By nishu.soni in forum LuceneReplies: 0Last Post: 11-17-2009, 01:58 PM -
composite-id problem hibernate
By javadev in forum JDBCReplies: 14Last Post: 07-27-2009, 06:30 PM -
SpatialQuery for location based search using Lucene
By simona in forum LuceneReplies: 0Last Post: 06-28-2009, 01:10 AM -
Need help in lucene with hibernate search
By gopalbisht in forum Java SoftwareReplies: 1Last Post: 04-20-2009, 01:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks