Re: Lucene [3.0] Skip Matching Document.

2015-07-28 Thread Ismail
Muhammad Ismail gmail.com> writes: Any one - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Lucene (3.0) print payload information

2015-04-07 Thread Muhammad Ismail
Hi I have created a sample index with 2 fields i.e. [title & body] I have saved payload information (float value) with title field. Now I am trying to print payload value for each term in title field. Getting termpositions from reader does not work. reader.termpoistion().isPayloadAvailable() is n

Lucene Field Boost

2015-04-29 Thread Muhammad Ismail
Hi I have simple index with 2 fields i.e. title and body. When i perform a simple search query like bring document which have particular text like lazy or dog or brown in either title or body but I want matches in title get boost over body reault. Also document which have all matches must be on to

Re: Lucene Field Boost

2015-04-30 Thread Muhammad Ismail
Any one ? On Thu, Apr 30, 2015 at 12:01 AM, Muhammad Ismail wrote: > Hi > > I have simple index with 2 fields i.e. title and body. When i perform a > simple search query like bring document which have particular text like > lazy or dog or brown in either title or body but I

Re: Lucene Field Boost

2015-04-30 Thread Muhammad Ismail
ne, perhaps: > > http://lucene.apache.org/core/4_10_4/core/org/apache/lucene/document/Field.html#setBoost(float) > > -Original Message- > From: Muhammad Ismail [mailto:it.is.ism...@gmail.com] > Sent: Thursday, April 30, 2015 3:22 AM > To: java-user@lucene.apache.org &

Lucene [3.0] Skip Matching Document.

2015-07-28 Thread Muhammad Ismail
; other has rating 12 then i want only 1 record i.e. book with rating 12 I am using Lucene 3.0 -- Thanks Muhammad Ismail

Re: Lucene [3.0] Skip Matching Document.

2015-07-29 Thread Muhammad Ismail
n > > On Tue, Jul 28, 2015 at 4:26 AM, Muhammad Ismail > wrote: > > > Can we skip matching lucene document by using custom collector or some > > other way. Like I want to bring all document created by user xxx on > > specific date but after we got a match, we want to run

TermQuery and PhraseQuery..problem with word with space

2006-10-08 Thread Ismail Siddiqui
elds result on all 3 combination "My" , "Word", "MY Word" but I actually want to show result only on "My Word"... Is term qurey limited to one word? i mean if we index a word with space and index it UN_TOKENIZED.. shouldnt TermQuery yeild result to "My Word". Ismail

Re: TermQuery and PhraseQuery..problem with word with space

2006-10-09 Thread Ismail Siddiqui
match your expectation? > > Is term qurey limited to one word? i mean if we index a word with space and > index it UN_TOKENIZED.. > shouldnt TermQuery yeild result to "My Word". > > > Ismail There is no such limitation. Hope this helps, Doron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: TermQuery and PhraseQuery..problem with word with space

2006-10-09 Thread Ismail Siddiqui
in fav_stores i see "Banana Republic" and "Ann Taylor" there .. and i am searching it with the capitals. On 10/9/06, Erick Erickson <[EMAIL PROTECTED]> wrote: OK, when you look in the "fav_stores" field in Luke, what do you see? And, are you searching on "Banana Republic" with the capitals? I

problem deleting documents

2006-10-14 Thread Ismail Siddiqui
hi guys i am having problem deleting documents .. apparently its not doin it.. here is the code snippet public void delete(final BoardMessage message) { try{ IndexReader fsReader; if (index.exists()) { fsReader =IndexReader.open(index);

Re: problem deleting documents

2006-10-15 Thread Ismail Siddiqui
thanks, it worked On 10/15/06, Doron Cohen <[EMAIL PROTECTED]> wrote: > now pk is primary key which i am storing but not indexing it.. > doc.add(new Field("pk", message.getId().toString(),Field.Store.YES, > Field.Index.NO)); You would need to index it for this to work.

Filtering results on a Field

2007-02-28 Thread Ismail Siddiqui
Hey guys, I want to filter a result set on a particular field..I have code like this try { PhraseQuery textQuery = new PhraseQuery(); PhraseQuery titleQuery = new PhraseQuery(); PhraseQuery catQuery = new PhraseQuery(); textQuery.setSlop( 20 );

Re: Filtering results on a Field

2007-02-28 Thread Ismail Siddiqui
throw new RuntimeException( "Unable to make any sense of the query.", e ); } and use bQueryAll in your query. And please be wy more elegant than the code I wrote . Erick On 2/28/07, Ismail Siddiqui <[EMAIL PROTECTED]> wrote: > > Hey guys, > I want to filter a res

writer.minMergeDocs in lucene 2.0

2006-09-21 Thread Ismail Siddiqui
writer.setMinMergeDocs().. can any one help.. how can i increase minimum docucment merge size. thanks all Ismail Siddiqui

BooleanQuery

2006-09-29 Thread Ismail Siddiqui
Hi, I have two pharase queries messageQuery = new PhraseQuery(); titleQuery = new PhraseQuery(); messageQuery.setSlop(3); titleQuery.setSlop(1); for (int i=0; i