RE: New user: multi fields query question

2010-04-28 Thread Nenad Maričić
multi fields query question Hi Nenad, To get 3 matches, you should have indexed 3 documents(either same docs. in the index or 3 docs each having one field). Otherwise it should have worked as you expected. For the second part, other that boosting "keyword", I don't think that you have t

RE: New user: multi fields query question

2010-04-28 Thread Digy
ng extra. DIGY -Original Message- From: Nenad Maricic [mailto:[email protected]] Sent: Wednesday, April 28, 2010 7:43 PM To: [email protected] Subject: New user: multi fields query question Hi, Hope there is solution for this: We have an index with following fields in the

New user: multi fields query question

2010-04-28 Thread Nenad Maricic
Hi, Hope there is solution for this: We have an index with following fields in the document: title, keyword, and category. We are using our, custom similarity class, with all factors set to 1.0 (tf, idf, lengthNorm) except coord. Also, we have boosted "keyword" field during indexing. We are

RE: Query question

2010-03-15 Thread Digy
Subject: RE: Query question Luis, As you mentioned previously rather than add spacing tokens such as 'xx' between the terms, you can use a custom analyzer to put a large gap in the position increment between the items you wish to keep together. In this way you would have: Pos

RE: Query question

2010-03-15 Thread Michael Garski
Whoops - I misspoke - it's the PositionIncrementAttribute, not the OffsetAttribute that you would use in 2.9. Michael -Original Message- From: Michael Garski Sent: Monday, March 15, 2010 9:09 AM To: [email protected] Subject: RE: Query question Luis, As you ment

RE: Query question

2010-03-15 Thread Michael Garski
s the approach Solr takes with what is called 'multi-valued fields'. Michael -Original Message- From: Luis Fco Ramirez Daza Glez [mailto:[email protected]] Sent: Monday, March 15, 2010 7:52 AM To: [email protected] Subject: RE: Query question Hi Art Th

RE: Query question

2010-03-15 Thread Luis Fco Ramirez Daza Glez
lyzer and only use your suggestion as my last resort. Best regards Luis > -Original Message- > From: Artem Chereisky [mailto:[email protected]] > Sent: Sunday, March 14, 2010 11:02 PM > To: [email protected] > Subject: Re: Query question > > Lui

Re: Query question

2010-03-14 Thread Artem Chereisky
gt; > From: Artem Chereisky [mailto:[email protected]] > > Sent: Sunday, March 14, 2010 10:13 PM > > To: [email protected] > > Subject: Re: Query question > > > > Luis, > > > > Have you considered PhraseQuery or SpanQuery? Both of them

RE: Query question

2010-03-14 Thread Luis Fco Ramirez Daza Glez
mple. Regards, Luis > -Original Message- > From: Artem Chereisky [mailto:[email protected]] > Sent: Sunday, March 14, 2010 10:13 PM > To: [email protected] > Subject: Re: Query question > > Luis, > > Have you considered PhraseQuery or SpanQuery? Bot

Re: Query question

2010-03-14 Thread Artem Chereisky
Luis, Have you considered PhraseQuery or SpanQuery? Both of them would satisfy your requirement of finding "John Lennon" but not "Paul Lennon". Answering your last question about fields with the same name, they are not really different fields. Consider this: Adding three fields to the same docum

Query question

2010-03-14 Thread Luis Fco Ramirez Daza Glez
Hi all Hope somebody can help me with this. I have an index with several fields that repeat in a document. Sample doc: Date- 2010-01-01 ID- ASDF Name- John Lennon Name- Ringo Star Name- Paul McCartney Name- George Harrison I want that the search return only the d