Re: Exact match

2011-05-17 Thread Anuj Kumar
Hi Alex, You need to define that field of type String in the schema and then search for it. That will give you an exact match. Regards, Anuj On Tue, May 17, 2011 at 7:21 PM, Alex Grilo wrote: > Hi, > > Can I make a query that returns only exact match or do I have to change the > fields to achi

Re: Exact match

2011-05-17 Thread roySolr
Try this: "search term" -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-match-tp2952591p2952699.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Exact match

2011-05-17 Thread Jonathan Rochkind
You've got to change the fields to do it. If you use a String field, then only exact matches will match, but they'll be REALLY exact matches -- spacing, punctuation, etc. Also, if you are using the lucene or dismax query parsers, you'll need to phrase quote your query if it has any spaces in

Re: Exact match

2011-05-18 Thread Jan Høydahl
There's a JIRA issue assigned to this feature: https://issues.apache.org/jira/browse/SOLR-1980 However, it's not yet implemented. Anyone? -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 17. mai 2011, at 15.51, Alex Grilo wrote: > Hi, > > Can I make a query that re

Re: Exact match

2009-09-23 Thread AHMET ARSLAN
> Hi, >   > I am doing exact search in Solr .In Solr admin page I  am > giving the search input string for search. > For ex: I am giving “channeL12” as search input string > in solr home page it displays search results as >   > >   http://rediff >   first >   channeL12 > >   > As there is a matc

RE: Exact Match

2009-03-19 Thread Dean Missikowski (Consultant), CLSA
Hi Laurent, I use the copy field approach and copy the text fields to a custom type "text_exact" that I define in my schema.xml. This allows searching for "exact matches" anywhere within the text field, which doesn't use tokens injected by stemming, synonyms or other index-time filters. In my ap

RE: Exact Match

2009-03-24 Thread Chris Hostetter
: Depending on your needs, you might want to do some sort of minimal : analysis on the field (ignore punctuation, lowercase,...) Here's the : text_exact field that I use: Deans reply is a great example of what "exact" is a vague term. with a TextField you can get an "exact" match using a simpl

Re: Exact match

2008-07-28 Thread Erik Hatcher
Look at what Solr returns when adding &debugQuery=true for the parsed query, and also consider how your fields are analyzed (their associated type, etc). Erik On Jul 28, 2008, at 4:56 AM, Sunil wrote: Hi, I am sending a request to solr for exact match. Example: (title:("Web 2.0"

RE: Exact match

2008-07-28 Thread Sunil
Both the fields are "text" type: How "&debugQuery=true" will help? I am not familiar with the output. Thanks, Sunil -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 2:33 PM To: solr-user@lucene.apache.org Subject:

Re: Exact match

2008-07-28 Thread Erik Hatcher
Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 2:33 PM To: solr-user@lucene.apache.org Subject: Re: Exact match Look at what Solr returns when adding &debugQuery=true for the parsed query, and also consider how your fields are analyzed (their associated type, etc).

Re: exact match lookup

2009-11-04 Thread Jérôme Etévé
Hi, you need to quote your phrase when you search for 'Social News': feedClass:"Social News" (URI encoded of course). otherwise your request will become (I assume you're using a standard query parser) feedClass:Social defaultField:News . Well that's the idea. It should then work using the type

Re: exact match lookup

2009-11-04 Thread Joel Nylund
thank worked for me, changed to: http://localhost:8983/solr/select?q=feedClass:%22social%20news%22 and the matches are correct, I changed the feedClass field back to type text. A followup question has to do with sorting these results. I have a field called title that I want the results sort

Re: exact match lookup

2009-11-04 Thread Jérôme Etévé
If feedClass acts as an identifier, better use string :) use sort=title asc,score desc (not sort:) J. 2009/11/4 Joel Nylund : > thank worked for me, changed to: > > http://localhost:8983/solr/select?q=feedClass:%22social%20news%22 > > and the matches are correct, I changed the feedClass field ba

Re: exact match lookup

2009-11-04 Thread AHMET ARSLAN
> A followup question has to do with sorting these results. > > I have a field called title that I want the results sorted > by. > > http://localhost:8983/solr/select?q=feedClass:%22social%20news%22&sort:title%20asc > > I tried this and the results are not sorted (they seem > random) > > any i

Re: exact match lookup

2009-11-04 Thread Erick Erickson
How did you index your title field? It sholdn't be tokenized, see: http://wiki.apache.org/solr/FAQ#Why_Isn.27t_Sorting_Working_on_my_Text_Fields.3F Best Erick On Wed, Nov 4, 2009 at 1:47 PM, Joel Nylund wrote: >

Re: exact match lookup

2009-11-04 Thread Joel Nylund
that worked, thanks! had to negate the score. thanks Joel On Nov 4, 2009, at 1:57 PM, Jérôme Etévé wrote: If feedClass acts as an identifier, better use string :) use sort=title asc,score desc (not sort:) J. 2009/11/4 Joel Nylund : thank worked for me, changed to: http://localhost:8983/s

Re: exact match lookup

2009-11-04 Thread Paul Libbrecht
if you want to have exactly the same effect as the SQL equality, you need more. The phrase query matches anything with words Social followed by news. It would also match feedClass:"... finished. Social News In Our Bulletin". As noted elsewhere on the thread you need to query this on a field

Re: Exact match search problem

2009-02-02 Thread Stephen Weiss
Try using fieldtype "string" instead of "text" for the UserName field. Then it will not be tokenized so it should only give exact matches. -- Steve On Feb 2, 2009, at 2:27 AM, mahendra mahendra wrote: Hi, I have indexed my data as "custom123, customer, custom" for the "UserName" fiel

Re: Exact match search problem

2009-02-09 Thread Chris Hostetter
: I have indexed my data as "custom123, customer, custom" for the : "UserName" field. I need to search the records for exact match, when I : am trying to search with UserName:"customer" I am finding the records : where UserName is custom123 and custom. : : As per my understanding solr splits t

Re: Exact match on a filter

2010-06-17 Thread Joe Calderon
use a copyField and index the copy as type string, exact matches on that field should then work as the text wont be tokenized On Thu, Jun 17, 2010 at 3:13 PM, Pete Chudykowski wrote: > Hi, > > I'm trying with no luck to filter on the exact-match value of a field. > Speciffically: >  fq=brand:appl

Re: Exact match on a filter

2010-06-17 Thread Erik Hatcher
And when you do that, a best practice for fq'ing on a string field is: fq={!raw f=field_name}value That avoids query parsing and the hassles associated with escaping special characters. Erik On Jun 17, 2010, at 6:22 PM, Joe Calderon wrote: use a copyField and index the copy as

RE: Exact match on a filter

2010-06-17 Thread Pete Chudykowski
Wonderful, Thank you both. Pete. -Original Message- From: Erik Hatcher [mailto:erik.hatc...@gmail.com] Sent: Thursday, June 17, 2010 3:33 PM To: solr-user@lucene.apache.org Subject: Re: Exact match on a filter And when you do that, a best practice for fq'ing on a string fie

Re: Exact Match using Copy Fields

2011-08-18 Thread Juan Grande
Hi, are you sure you're using dismax query parser? Make sure you have the parameter "defType=dismax" in your request. *Juan* On Thu, Aug 18, 2011 at 11:22 AM, jyn7 wrote: > Hi, > > I am trying to achieve an exact match search on a text field. I am using a > copy field and copying it to a stri

Re: exact match coming as second record

2010-04-05 Thread Erick Erickson
What do you get back when you specify &debugQuery=on? Best Erick On Mon, Apr 5, 2010 at 7:31 PM, Mark Fletcher wrote: > Hi, > > I am using the dismax handler. > I have a field named *myfield* which has a value say XXX.YYY.ZZZ. I have > boosted myfield^20.0. > Even with such a high boost (in fact

Re: exact match coming as second record

2010-04-05 Thread Mark Fletcher
Hi Eric, Thanks many for your mail! Please find attached the debugQuery results. Thanks! Mark On Mon, Apr 5, 2010 at 7:38 PM, Erick Erickson wrote: > What do you get back when you specify &debugQuery=on? > > Best > Erick > > On Mon, Apr 5, 2010 at 7:31 PM, Mark Fletcher > wrote: > > > Hi, > >

Re: Exact match on a field with stemming

2011-04-11 Thread Otis Gospodnetic
Hi, Using quoted means "use this as a phrase", not "use this as a literal". :) I think copying to unstemmed field is the only/common work-around. Otis Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ - Original Message

RE: Exact match on a field with stemming

2011-04-11 Thread Jean-Sebastien Vachon
:42 PM To: solr-user@lucene.apache.org Subject: Re: Exact match on a field with stemming Hi, Using quoted means "use this as a phrase", not "use this as a literal". :) I think copying to unstemmed field is the only/common work-around. Otis Sematext :: http://sematext.com/ :: Solr -

RE: Exact match on a field with stemming

2011-04-11 Thread Jean-Sebastien Vachon
ning that phrase are returned, you got it. -----Original Message- From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] Sent: April-11-11 3:42 PM To: solr-user@lucene.apache.org Subject: Re: Exact match on a field with stemming Hi, Using quoted means "use this as a phrase"

Re: Exact match not the first result returned

2011-07-26 Thread Emmanuel Espina
That is caused by the size of the documents. The principle is pretty intuitive if one of your documents is the entire three volumes of The Lord of the Rings, and you search for "tree" I know that The Lord of the Rings will be in the results, and I haven't memorized the entire text of that book :p I

Re: Exact match not the first result returned

2011-07-27 Thread Brian Lamb
Thanks Emmanuel for that explanation. I implemented your solution but I'm not quite there yet. Suppose I also have a record: RECORD 3 Fred G. Anderson Fred Anderson With your solution, RECORD 1 does appear at the top but I think thats just blind luck more than anything else because RECORD 3

Re: Exact match not the first result returned

2011-07-27 Thread Chris Hostetter
: With your solution, RECORD 1 does appear at the top but I think thats just : blind luck more than anything else because RECORD 3 shows as having the same : score. So what more can I do to push RECORD 1 up to the top. Ideally, I'd : like all three records returned with RECORD 1 being the first li

Re: Exact match not the first result returned

2011-07-28 Thread Brian Lamb
That's a clever idea. I'll put something together and see how it turns out. Thanks for the tip. On Wed, Jul 27, 2011 at 10:55 PM, Chris Hostetter wrote: > > : With your solution, RECORD 1 does appear at the top but I think thats > just > : blind luck more than anything else because RECORD 3 shows

Re: Exact match not the first result returned

2011-07-28 Thread Jonathan Rochkind
Keep in mind that if you use a field type that includes spaces (eg StrField, or KeywordTokenizer), then if you're using dismax or lucene query parsers, the only way to find matches in this field on queries that include spaces will be to do explicit phrase searches with double quotes. These fi

Re: Exact match not the first result returned

2011-07-29 Thread Brian Lamb
I implemented both solutions Hoss suggested and was able to achieve the desired results. I would like to go with defType=dismax & qf=myname & pf=myname_str^100 & q=Frank but that doesn't seem to work if I have a query like myname:Frank otherfield:something. So I think I will go with q=+myname:F