Re: get term frequency, just only keywords search

2014-04-26 Thread Jack Krupansky
ne.apache.org Subject: Re: get term frequency, just only keywords search Hi, jack i have a same problem as danielitos85 i want to search like "research development" but termfreq function not work as per your messages and you said that use phraseFreq but we can get it from debug que

Re: get term frequency, just only keywords search

2014-04-26 Thread ksmith
Hi, jack i have a same problem as danielitos85 i want to search like "research development" but termfreq function not work as per your messages and you said that use phraseFreq but we can get it from debug query. my problem is i want to sort on "research development" count, higher count document wi

Re: get term frequency, just only keywords search

2013-08-21 Thread Jack Krupansky
es and write the code needed to ferret it out. -- Jack Krupansky -Original Message- From: danielitos85 Sent: Wednesday, August 21, 2013 4:41 AM To: solr-user@lucene.apache.org Subject: Re: get term frequency, just only keywords search Thanks a lot guys, @Jack in my search I use dis

Re: get term frequency, just only keywords search

2013-08-21 Thread danielitos85
Thanks a lot guys, @Jack in my search I use dismax (how defType) and I search either term or phrase, but I need to get the number that show me how many time that term or phrase is in the document. I could get it from debugQuery but I would like get it directly from the results. What do you sugge

Re: get term frequency, just only keywords search

2013-08-19 Thread Jack Krupansky
Sent: Monday, August 19, 2013 10:25 AM To: solr-user@lucene.apache.org Subject: Re: get term frequency, just only keywords search ok I undestand it (thanks) but if I search a sentence and type "debugQuery=on", in the explain I obtain termFreq=2.0 and it right. Is it possible to obta

Re: get term frequency, just only keywords search

2013-08-19 Thread Erick Erickson
There are a series of functions that can deal with _some_ relevance data, see: http://wiki.apache.org/solr/FunctionQuery#Relevance_Functions Best Erick On Mon, Aug 19, 2013 at 10:25 AM, danielitos85 wrote: > ok I undestand it (thanks) but if I search a sentence and type > "debugQuery=on", in th

Re: get term frequency, just only keywords search

2013-08-19 Thread danielitos85
ok I undestand it (thanks) but if I search a sentence and type "debugQuery=on", in the explain I obtain termFreq=2.0 and it right. Is it possible to obtain that parameter? -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-only-keywords-search-tp40845

Re: get term frequency, just only keywords search

2013-08-19 Thread Jack Krupansky
o: solr-user@lucene.apache.org Subject: Re: get term frequency, just only keywords search there isn't a way to get termFreq about a search like "french fries" (sentence)? -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-only-keywords-sea

Re: get term frequency, just only keywords search

2013-08-19 Thread danielitos85
there isn't a way to get termFreq about a search like "french fries" (sentence)? -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-only-keywords-search-tp4084510p4085454.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: get term frequency, just only keywords search

2013-08-19 Thread Jack Krupansky
user@lucene.apache.org Subject: Re: get term frequency, just only keywords search Thanks Jack, but if my keyword search are two words? for example "french fries" ? how is the right syntax? -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-onl

Re: get term frequency, just only keywords search

2013-08-19 Thread danielitos85
Thanks Jack, but if my keyword search are two words? for example "french fries" ? how is the right syntax? -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-only-keywords-search-tp4084510p4085399.html Sent from the Solr - User mailing list archive at N

Re: get term frequency, just only keywords search

2013-08-14 Thread Jack Krupansky
q="pizza"+"tomato"&fl=id,termfreq(myfield,'pizza'),termfreq(myfield,'tomato') -- Jack Krupansky -Original Message- From: danielitos85 Sent: Wednesday, August 14, 2013 1:22 PM To: solr-user@lucene.apache.org Subject: Re: get term frequency, j

Re: get term frequency, just only keywords search

2013-08-14 Thread danielitos85
Thanks. I tried to use termfreq function and it is ok for me but, last my question is: if I have a query like this: q="pizza"+"tomato"&fl=id,termfreq(myfield,**) how set my query (pizza+tomato) in second param in termfreq function? -- View this message in context: http://lucene.472066.n3

Re: get term frequency, just only keywords search

2013-08-14 Thread Jack Krupansky
- From: danielitos85 Sent: Wednesday, August 14, 2013 12:50 PM To: solr-user@lucene.apache.org Subject: Re: get term frequency, just only keywords search Thanks Jack, I'm tring to use tf function but I don't understand: why he returns a float value and not integer? At the start of th

Re: get term frequency, just only keywords search

2013-08-14 Thread danielitos85
Thanks Jack, I'm tring to use tf function but I don't understand: why he returns a float value and not integer? At the start of this topic I explained an example where I used term Frequency but it don't works how I need because he returns the term frequency about all the terms of my field. Thank

Re: get term frequency, just only keywords search

2013-08-14 Thread Jack Krupansky
You can use the termfreq or tf function query in your field list to return the term frequency for a term, like: fl=id,tf(foods,'pizza') -- Jack Krupansky -Original Message- From: danielitos85 Sent: Wednesday, August 14, 2013 5:29 AM To: solr-user@lucene.apache.org Subject: get term f

RE: get term frequency, just only keywords search

2013-08-14 Thread danielitos85
sorry, but now I give more attention at the results and it don't return that I needed. If I have two documents indexed: the text of my first document: "ice-cream pizza pizza pizza" the text of my second document: "pizza tomato" it returns the followed code:

RE: get term frequency, just only keywords search

2013-08-14 Thread danielitos85
thanks a lot Markus ;) If I use regex parameter it works -- View this message in context: http://lucene.472066.n3.nabble.com/get-term-frequency-just-only-keywords-search-tp4084510p4084525.html Sent from the Solr - User mailing list archive at Nabble.com.

RE: get term frequency, just only keywords search

2013-08-14 Thread Markus Jelsma
Why? Using terms.limit or a ^term$ regex should limit the response to the exact term right? -Original message- > From:danielitos85 > Sent: Wednesday 14th August 2013 12:20 > To: solr-user@lucene.apache.org > Subject: RE: get term frequency, just only keywords search >

RE: get term frequency, just only keywords search

2013-08-14 Thread danielitos85
Thanks for your answer, but I'm tring to use TermsComponent but the output is similar. TermsComponent returns all the terms (*and not just for the term that I have search*) and their counts for a given field. something wrong? -- View this message in context: http://lucene.472066.n3.nabble.com

RE: get term frequency, just only keywords search

2013-08-14 Thread Markus Jelsma
Try the TermsComponent. It will return one or more terms and their counts for a given field only. -Original message- > From:danielitos85 > Sent: Wednesday 14th August 2013 11:30 > To: solr-user@lucene.apache.org > Subject: get term frequency, just only keywords search > > I need to ge