Re: Problem with white space or special characters in function queries

2019-03-29 Thread Erick Erickson
Ahamed: Please start a new thread. Although your question is somewhat related, it’s not the same thing at all. It’s called “thread hijacking” and makes it difficult to keep track of. > On Mar 29, 2019, at 4:46 AM, Ahemad Ali > wrote: > > Do you have any suggestions for querying the indexed d

Re: Problem with white space or special characters in function queries

2019-03-29 Thread Ahemad Ali
Do you have any suggestions for querying the indexed data with whitespaces and special charectors ? Sent from Yahoo Mail on Android On Fri, Mar 29, 2019 at 16:59, Yonik Seeley wrote: On Thu, Mar 28, 2019 at 6:05 PM Jan Høydahl wrote: > Functions can never contain spaces. Spaces work f

Re: Problem with white space or special characters in function queries

2019-03-29 Thread Yonik Seeley
On Thu, Mar 28, 2019 at 6:05 PM Jan Høydahl wrote: > Functions can never contain spaces. Spaces work fine in functions in general. The issue is the "bf" parameter as it uses whitespace to delimit multiple functions IIRC. -Yonik > Try to substitute the term with a variable, i.e. a request pa

Re: Problem with white space or special characters in function queries

2019-03-28 Thread shamik
Thanks Jan, I was not aware of this, appreciate your help. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Problem with white space or special characters in function queries

2019-03-28 Thread Jan Høydahl
Functions can never contain spaces. Try to substitute the term with a variable, i.e. a request parameter, e.g. bf=if(termfreq(ADSKFeature,$myTerm),log(CaseCount),sqrt(CaseCount))&myTerm=CUI+(Command) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 28. mar. 2019 kl.

Re: Problem with white space or special characters in function queries

2019-03-28 Thread shamik
Ahemad, I don't think its related to the field definition, rather looks like an inherent bug. For the time being, I created a copyfield which uses a custom regex to remove whitespace and special characters and use it in the function. I'll debug the source code and confirm if it's bug, will raise a

Re: Problem with white space or special characters in function queries

2019-03-28 Thread Ahemad Ali
Hi,Did you find any solution for this, I tried adding analyzers with keyword tokenizer and reversewildcardfilterfactory but was not working.  It's working when I don't include spaces when I am doing wildcard search but not giving the result when I have whitespaces and do wildcard search using *

Re: Problem with white space or special characters in function queries

2019-03-27 Thread shamik
I'm using Solr 7.5, here's the query: q=line&fq=language:"english"&fq=Source2:("topicarticles"+OR+"sfdcarticles")&fl=url,title&bq=ADSKFeature:"CUI+(Command)"^7&bf=recip(ms(NOW/DAY,PublishDate),3.16e-11,1,1)^2+if(termfreq(ADSKFeature,'CUI (Command)'),log(CaseCount),sqrt(CaseCount))&rows=10 -- Se

Re: Problem with white space or special characters in function queries

2019-03-26 Thread Zheng Lin Edwin Yeo
Hi Shamik, String fieldType should keep the space. Can you give the full query that you used when you get the error? Also, which Solr version are you using? Regards, Edwin On Wed, 27 Mar 2019 at 03:16, shamik wrote: > Edwin, > >The field is a string type, here's the field definition. > >

Re: Problem with white space or special characters in function queries

2019-03-26 Thread shamik
Edwin, The field is a string type, here's the field definition. -Shamik -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Problem with white space or special characters in function queries

2019-03-25 Thread Zheng Lin Edwin Yeo
Hi Shamik, What fieldType are you using for the field that you are doing the function queries on? Regards, Edwin On Tue, 26 Mar 2019 at 06:40, Shamik Bandopadhyay wrote: > Hi, > >I'm having trouble handling white space or special characters in > function queries. Here&#x

Problem with white space or special characters in function queries

2019-03-25 Thread Shamik Bandopadhyay
Hi, I'm having trouble handling white space or special characters in function queries. Here's a sample function: if(termfreq(ADSKFeature,'CUI (Command)'),log(CaseCount),sqrt(CaseCount)) I tried escaping the space with "\", but that didn't work either

Re: Different behavior when using function queries

2019-03-18 Thread Erik Hatcher
the below behavior.For different q parameter > function query response differs although function queries are same > > http://:8983/solr/SCSpell/select?q="*market > place*"&defType=edismax&qf=spellcontent&wt=json&rows=1&fl=internet_of_things:if(exists(query({

Different behavior when using function queries

2019-03-18 Thread Ashish Bisht
Can someone please explain the below behavior.For different q parameter function query response differs although function queries are same http://:8983/solr/SCSpell/select?q="*market place*"&defType=edismax&qf=spellcontent&wt=json&rows=1&fl=internet_of_thin

Re: Parameter Dereferencing with function queries in solr json facet

2018-12-09 Thread Venu
Thanks Mikhail -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Parameter Dereferencing with function queries in solr json facet

2018-12-08 Thread Mikhail Khludnev
One can not apply range query syntax over function. {!frange} query parser can handle that. On Sat, Dec 8, 2018 at 2:45 PM Venu wrote: > I am using solr6.6. I am trying to use parameter Dereferencing for json > facets. > > There can be multiple prices for all the documents(assume sp, price1, > p

Parameter Dereferencing with function queries in solr json facet

2018-12-08 Thread Venu
I am using solr6.6. I am trying to use parameter Dereferencing for json facets. There can be multiple prices for all the documents(assume sp, price1, price2, price3, price4 are the prices for all the documents). Based on the query, I have to fetch the minimum value among the combination of those

Re: Function queries with Json facet

2017-06-05 Thread Susheel Kumar
Also change manufacturedate_dt to dob field and price to grade... On Mon, Jun 5, 2017 at 10:33 AM, Susheel Kumar wrote: > You are looking for something like below. Please adjust the start and > end. You can also give a fixed date instead of NOW etc.. > > curl http://localhost:8983/solr/techpro

Re: Function queries with Json facet

2017-06-05 Thread Susheel Kumar
You are looking for something like below. Please adjust the start and end. You can also give a fixed date instead of NOW etc.. curl http://localhost:8983/solr/techproducts/query -d 'q=*:*& json.facet={ byyeaar:{ type:range, field:"manufacturedate_dt", start : NOW-15YEAR/YEAR,

Function queries with Json facet

2017-06-04 Thread Mikhail Ibraheem
Hi,I have a date field date_of_birth and have double field grade. I can easily get the sum of grades per date_of_birth value using:{date_of_birth:{          type:terms,        field:"date_of_birth", facet: {   "metric":"sum(grade)" }  }} But what if I want to group only part of the date_

Re: Using function queries for faceting

2017-04-08 Thread Georg Sorst
Hi Mikhail, thanks, JSON facet domains may actually be the key! Something like (when a user from group1 is searching): 1. Facet on price_group1 2. Facet on price for all results that do not have price_group1 field using JSON facet domain 3. Sum up the facet counts Best, Georg Mikhail Khludnev

Re: Using function queries for faceting

2017-04-04 Thread Mikhail Khludnev
Exclude users' products, calculate default price facet, then facet only user's products (in a main query) and sum facet counts. It's probably can be done with switching domains in json facets. On Tue, Apr 4, 2017 at 5:43 PM, Georg Sorst wrote: > Hi Mikhail, > > copying the default field was my f

Re: Using function queries for faceting

2017-04-04 Thread Georg Sorst
Hi Mikhail, copying the default field was my first attempt as well - however, the system in total has over 50.000 users which may have an individual price on every product (even though they usually don't). Still, with the copying approach this results in every document having 50.000 price fields.

Re: Using function queries for faceting

2017-04-04 Thread Mikhail Khludnev
Hello Georg, You can probably use {!frange} and and a few facet.query enumerating price ranges, but probably it's easier to just copy default price across all empty price groups in index time. On Tue, Apr 4, 2017 at 1:14 PM, Georg Sorst wrote: > Hi list! > > My documents are eCommerce items. T

Using function queries for faceting

2017-04-04 Thread Georg Sorst
Hi list! My documents are eCommerce items. They may have a special price for a certain group of users, but not for other groups of users; in that case the default price should be used. So the documents look like something like this: item: id: 1 price_default: 11.5 price_group1: 11.2 item:

Re: 1:n relation and function queries

2017-02-01 Thread Mikhail Khludnev
Why you can't get score from child level and combining it on a parent level? On Wed, Feb 1, 2017 at 5:33 PM, Ewald Moitzi wrote: > Hello Mikhail, > > I was using the functions as fl and sort parameters, and this > gives no result. > > When sorting by score, as you did in your blog, I get the val

Re: 1:n relation and function queries

2017-02-01 Thread Ewald Moitzi
Hello Mikhail, I was using the functions as fl and sort parameters, and this gives no result. When sorting by score, as you did in your blog, I get the values from the child documents. (I missed the score=max parameter) However, i need to combine values from the parent and child, like this: {!fu

Re: 1:n relation and function queries

2017-02-01 Thread Mikhail Khludnev
Ewald, Functional queries combines well with block join as well as query time join, here are examples for latter one http://blog-archive.griddynamics.com/2015/08/scoring-join-party-in-solr-53.html It must be the same for block join. What doesn't work exactly? On Wed, Feb 1, 2017 at 1:39 PM, Ewald

1:n relation and function queries

2017-02-01 Thread Ewald Moitzi
Hello, I am unsure if solr is the right solution for a problem that we have, of if it is better to stick with a relational database (and if it should be done in solr how to implement it). The explanation is a bit lengthy, but please bear with me. The problem: Sort results of a vendor search for a

Re: Parallel SQL and function queries?

2016-05-23 Thread Joel Bernstein
erface. >>> >>> But any fq should get passed through. it's not clear right now whether >>> multiple fq's will be passed through, but due to changes that Erick >>> Erickson recently contributed, I believe they will. Again we need test >>> cases for

Re: Parallel SQL and function queries?

2016-05-22 Thread Joel Bernstein
hrough, but due to changes that Erick >> Erickson recently contributed, I believe they will. Again we need test >> cases for this. >> >> The JDBC driver should pass through any properties that are set on the >> connection as well. Again I was mostly thinking about access

Re: Parallel SQL and function queries?

2016-05-22 Thread Joel Bernstein
ther qparsers can be added as well. > > This was not meant as the long term solution though. In future releases I > think we should roll out as many function queries and qparser plugins as > possible as SQL functions. > > > > > Joel Bernstein > http://joelsolr.blogspot

Re: Parallel SQL and function queries?

2016-05-22 Thread Joel Bernstein
ld pass through any properties that are set on the connection as well. Again I was mostly thinking about access control here but other qparsers can be added as well. This was not meant as the long term solution though. In future releases I think we should roll out as many function queries and qparser plu

Parallel SQL and function queries?

2016-05-22 Thread Timothy Potter
How would I do something like: find all docs using a geofilt, e.g. SELECT title_s FROM movielens WHERE location_p='{!geofilt d=90 pt=37.773972,-122.431297 sfield=location_p}' This fails with: {"result-set":{"docs":[ {"EXCEPTION":"java.util.concurrent.ExecutionException: java.io.IOException: --

Are fieldCache and/or DocValues used by Function Queries

2016-02-11 Thread Andrea Roggerone
Hi, I need to evaluate different boost solutions performance and I can't find any relevant documentation about it. Are fieldCache and/or DocValues used by Function Queries?

Query token access in solr function queries

2015-07-29 Thread Nutch Solr User
earch engine would basically understand everything in the world, and it would always give you the right thing." -- View this message in context: http://lucene.472066.n3.nabble.com/Query-token-access-in-solr-function-queries-tp4219695.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Performance/scaling with custom function queries

2014-06-12 Thread Robert Krüger
Thanks for the info. I will look at that. On Wed, Jun 11, 2014 at 3:47 PM, Joel Bernstein wrote: > In Solr 4.9 there is a feature called RankQueries, that allows you to > plugin your own ranking collector. So, if you wanted to write a > ranking/sorting collector that used a thread per segment, yo

Re: Performance/scaling with custom function queries

2014-06-11 Thread Joel Bernstein
In Solr 4.9 there is a feature called RankQueries, that allows you to plugin your own ranking collector. So, if you wanted to write a ranking/sorting collector that used a thread per segment, you could cleanly plug it in. Joel Bernstein Search Engineer at Heliosearch On Wed, Jun 11, 2014 at 9:39

Re: Performance/scaling with custom function queries

2014-06-11 Thread david.w.smi...@gmail.com
On Wed, Jun 11, 2014 at 7:46 AM, Robert Krüger wrote: > Or will I have to set up distributed search to achieve that? Yes — you have to shard it to achieve that. The shards could be on the same node. There were some discussions this year in JIRA about being able to do thread-per-segment but it

Re: Performance/scaling with custom function queries

2014-06-11 Thread Robert Krüger
nd of digital fingerprint-like thing. >>> >>> Let's say I want to perform queries on that field to achieve sorting >>> or filtering based on a kind of custom distance function >>> "customDistance", i.e. I input a reference "fingerprint" and

Re: Performance/scaling with custom function queries

2014-06-10 Thread Robert Krüger
e function >> "customDistance", i.e. I input a reference "fingerprint" and Solr >> returns either all documents sorted by >> customDistance(,) or use >> that in an frange expression for filtering. >> >> I have read http://wiki.apache.org/solr/Sol

Re: Performance/scaling with custom function queries

2014-06-08 Thread Joel Bernstein
eve sorting > or filtering based on a kind of custom distance function > "customDistance", i.e. I input a reference "fingerprint" and Solr > returns either all documents sorted by > customDistance(,) or use > that in an frange expression for filtering. > > I

Performance/scaling with custom function queries

2014-06-08 Thread Robert Krüger
based on a kind of custom distance function "customDistance", i.e. I input a reference "fingerprint" and Solr returns either all documents sorted by customDistance(,) or use that in an frange expression for filtering. I have read http://wiki.apache.org/solr/SolrPerformanceFa

Re: Boosting in function queries?

2013-08-06 Thread Upayavira
:"{!dismax qf=Fname v=$f_name}"^8.0 OR > _query_:"{!dismax qf=Lname v=$l_name}"^8.0 > > > Can someone let me know a way to boost Dismax / function queries without > using bq? > > > > > -- > View this message in context: > http://lucene.472066.n3

Boosting in function queries?

2013-08-05 Thread SolrLover
I am trying to use the below query to boost the score of dismax component but it doesn't seem to work .. _query_:"{!dismax qf=Fname v=$f_name}"^8.0 OR _query_:"{!dismax qf=Lname v=$l_name}"^8.0 Can someone let me know a way to boost Dismax / function queries without u

Re: Function queries

2013-05-15 Thread Yonik Seeley
On Wed, May 15, 2013 at 7:25 AM, sathish_ix wrote: > Hi , i would like to get all documents when searching for a keyword. > > http://localhost:8080/solr/select?q=caram&rows=_val_:"docfreq(SEARCH_TERM,'caram')" > > Searching for 'caram', there are 200 documents, but iam getting first 10 > documents

Function queries

2013-05-15 Thread sathish_ix
unction to the rows. Can we pass result of function to rows? Thanks, Sathish -- View this message in context: http://lucene.472066.n3.nabble.com/Function-queries-tp4063464.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Syntax for parameter substitution in function queries?

2012-08-08 Thread Timothy Hill
tion.3F, >> it is possible under Solr 4.0 to perform parameter substitutions >> within function queries. >> >> However, I can't get the syntax provided in the documentation there to >> work *at all* with Solr 4.0 out of the box: the only location at which >> func

Re: Syntax for parameter substitution in function queries?

2012-08-07 Thread Yonik Seeley
On Tue, Aug 7, 2012 at 3:01 PM, Timothy Hill wrote: > Hello, all ... > > According to http://wiki.apache.org/solr/FunctionQuery/#What_is_a_Function.3F, > it is possible under Solr 4.0 to perform parameter substitutions > within function queries. > > However, I can't get

Syntax for parameter substitution in function queries?

2012-08-07 Thread Timothy Hill
Hello, all ... According to http://wiki.apache.org/solr/FunctionQuery/#What_is_a_Function.3F, it is possible under Solr 4.0 to perform parameter substitutions within function queries. However, I can't get the syntax provided in the documentation there to work *at all* with Solr 4.0 out o

Re: Any plans to support function queries on score?

2011-10-04 Thread Chris Hostetter
: Do you have any plans to support function queries on score field? for : example, sort=floor(product(score, 100)+0.5) desc? You most certianly can conput function queries on the the "score" of a query, but you have to be explicit about which query you want to use the score of. Y

Any plans to support function queries on score?

2011-09-26 Thread Way Cool
Hi, guys, Do you have any plans to support function queries on score field? for example, sort=floor(product(score, 100)+0.5) desc? So far I am getting the following error: undefined field score I can't use subquery in this case because I am trying to use secondary sorting, however I wi

how to perform joins with function queries?

2011-09-20 Thread Jason Toy
I had a join query that was originally written as : {!join from=self_id_i to=user_id_i}data_text:hello and that works fine. I later added an fq filter: {!frange l=0.05 }div(termfreq(data_text,'hello'),max_i) and the query doesn't work anymore. if I do the fq by itself without the join the query w

Re: function queries scope

2011-06-07 Thread Marco Martinez
Thanks, but its not what i'm looking for, because the BoostQParserPlugin multiplies the score of the query with the function queries defined in the b param of the BoostQParserPlugin. and i can't use the edismax because we have our own qparser. Its seems that i have to code anoth

Re: function queries scope

2011-06-07 Thread Yonik Seeley
n madrid&boost=productValueField -Yonik http://www.lucidimagination.com On Tue, Jun 7, 2011 at 6:53 AM, Marco Martinez wrote: > Hi, > > I need to use the function queries operations with the score of a given > query, but only in the docset that i get from the query and i d

function queries scope

2011-06-07 Thread Marco Martinez
Hi, I need to use the function queries operations with the score of a given query, but only in the docset that i get from the query and i dont know if this is possible. Example: q=shops in madridreturns 1 docs with a specific score for each doc but now i need to do some stuff like q

Re: Conditional Function Queries

2010-09-28 Thread Jan Høydahl / Cominvent
written any conditional functions yet for use in Function >> Queries? > > Nope - but it makes sense and has been on my list of things to do for > a long time. > > -Y > http://lucenerevolution.org Lucene/Solr Conference, Boston Oct 7-8

Re: Conditional Function Queries

2010-09-28 Thread Yonik Seeley
On Tue, Sep 28, 2010 at 11:33 AM, Jan Høydahl / Cominvent wrote: > Have anyone written any conditional functions yet for use in Function Queries? Nope - but it makes sense and has been on my list of things to do for a long time. -Y http://lucenerevolution.org Lucene/Solr Conference, Boston

Conditional Function Queries

2010-09-28 Thread Jan Høydahl / Cominvent
Hi, Have anyone written any conditional functions yet for use in Function Queries? I see the use for a function which can run different sub functions depending on the value of a field. Say you have three documents: A: title=Sports car, color=red B: title=Boring car, color=green B: title=Big

Custom Sorting with function queries

2010-09-23 Thread dl
I need to 'rank' the documents in a solr index based on some field values and the query. Is this possible using function queries? Two example to illustrate what I am trying to achieve: The index contains two fields min_rooms and max_rooms, both integers, both optional. If I query the

Boosting by rating using function queries?

2010-04-22 Thread Jason Rutherglen
I have an int ratings field that I want to boost from within the query. So basically want to use the http://wiki.apache.org/solr/FunctionQuery#scale function to scale the ratings to values 1..5, then within the actual query (or otherwise), boost the scaled rating value. How would I go about doing t

Function Queries Use Indexed Values, Not Stored Values, Right?

2010-04-21 Thread Chris Harris
I pretty sure that function queries always work off of indexed values, rather than stored values. So, for example, if you want to use a field in a function query, it needs to be indexed. I want to add this fact to the wiki, where it's not currently stated explicitly, but I wanted to first co

Re: MoreLikeThis function queries

2010-04-08 Thread Blargy
Not yet I've been stuck trying to figure out what the hell is happening with my delta-imports: http://n3.nabble.com/Need-help-with-StackOverflowError-td704451.html#a704451 -- View this message in context: http://n3.nabble.com/MoreLikeThis-function-queries-tp692377p707308.html Sent from the

Re: MoreLikeThis function queries

2010-04-08 Thread Chris Hostetter
: Are function queries possible using the MLT request handler? How about using : the _val_ hack? Thanks for your help Did you try it? The MoreLikeThisHandler uses the same parsing logic to build it's initial query as the SearchHandler, so you can use whatever parsers you want (includin

Re: MoreLikeThis function queries

2010-04-05 Thread Blargy
Ok its now monday and everyone should have had their nice morning cup of coffee :) -- View this message in context: http://n3.nabble.com/MoreLikeThis-function-queries-tp692377p698304.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: MoreLikeThis function queries

2010-04-02 Thread Blargy
Fair enough :) -- View this message in context: http://n3.nabble.com/MoreLikeThis-function-queries-tp692377p693872.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: MoreLikeThis function queries

2010-04-02 Thread Darren Govoni
Its Friday dude. Give it a couple days. ;) On Fri, 2010-04-02 at 11:50 -0800, Blargy wrote: > Bueller? Anyone? :)

Re: MoreLikeThis function queries

2010-04-02 Thread Blargy
Bueller? Anyone? :) -- View this message in context: http://n3.nabble.com/MoreLikeThis-function-queries-tp692377p693648.html Sent from the Solr - User mailing list archive at Nabble.com.

MoreLikeThis function queries

2010-04-01 Thread Blargy
Are function queries possible using the MLT request handler? How about using the _val_ hack? Thanks for your help -- View this message in context: http://n3.nabble.com/MoreLikeThis-function-queries-tp692377p692377.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Function queries question

2009-11-23 Thread Grant Ingersoll
On Nov 23, 2009, at 6:54 AM, Oliver Beattie wrote: > Thanks for getting back to me. I've added inline responses below. > > 2009/11/20 Grant Ingersoll >> >> On Nov 20, 2009, at 3:15 AM, Oliver Beattie wrote: >> >>> Hi all, >>> >>> I'm a relative newcomer to Solr, and I'm trying to use it in a

Re: Function queries question

2009-11-23 Thread Oliver Beattie
Thanks for getting back to me. I've added inline responses below. 2009/11/20 Grant Ingersoll > > On Nov 20, 2009, at 3:15 AM, Oliver Beattie wrote: > > > Hi all, > > > > I'm a relative newcomer to Solr, and I'm trying to use it in a project > > of mine. I need to do a function query (I believe) t

Re: Function queries question

2009-11-20 Thread Grant Ingersoll
On Nov 20, 2009, at 3:15 AM, Oliver Beattie wrote: > Hi all, > > I'm a relative newcomer to Solr, and I'm trying to use it in a project > of mine. I need to do a function query (I believe) to filter the > results so they are within a certain distance of a point. For this, I > understand I should

Function queries question

2009-11-20 Thread Oliver Beattie
Hi all, I'm a relative newcomer to Solr, and I'm trying to use it in a project of mine. I need to do a function query (I believe) to filter the results so they are within a certain distance of a point. For this, I understand I should use something like sqedist or hsin, and from the documentation o

Re: Constant Score Queries and Function Queries

2009-10-26 Thread Grant Ingersoll
On Oct 25, 2009, at 2:36 PM, Chris Hostetter wrote: : Fair enough, I guess I was just kind of expecting a constant score query + a : function query to result in a score of whatever the function query is. This : is a common trick to sort by a function, but it's easy enough to just ^0 the

Re: Constant Score Queries and Function Queries

2009-10-25 Thread Chris Hostetter
: Fair enough, I guess I was just kind of expecting a constant score query + a : function query to result in a score of whatever the function query is. This : is a common trick to sort by a function, but it's easy enough to just ^0 the : non function clause. I think the root of hte issue is that

Re: Constant Score Queries and Function Queries

2009-10-23 Thread Grant Ingersoll
On Oct 22, 2009, at 9:44 PM, Chris Hostetter wrote: : > Why wouldn't you just query the function directly and leave out the *:* ? : : *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too.

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: > Why wouldn't you just query the function directly and leave out the *:* ? : : *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too. I guess i don't udnerstand what your point was ... you mention

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Grant Ingersoll
On Oct 22, 2009, at 2:44 PM, Chris Hostetter wrote: : As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn'

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn't you just query the function directly and leave out the *:*

Constant Score Queries and Function Queries

2009-10-21 Thread Grant Ingersoll
I have a simple set of docs containing two fields, an id and a price. When I run a constant score query, such as *:*, I, of course, get a score back of 1 for all the docs. If I add a simple Field Value function query to the constant score query, as in: *:* _val_:price_f, the query norm com

Re: Function Queries

2008-12-01 Thread outre
Just to confirm. The query works if written as in Yonik's comment. Thanks Yonik Seeley wrote: > > On Fri, Nov 28, 2008 at 8:33 PM, outre <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I was wondering if function queries are supported in SOLR1.3? >&g

Re: Function Queries

2008-11-28 Thread Yonik Seeley
On Fri, Nov 28, 2008 at 8:33 PM, outre <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if function queries are supported in SOLR1.3? > > I looked thru http://wiki.apache.org/solr/FunctionQuery, and tried to run an > example on my SOLR setup. It doesn't see

Function Queries

2008-11-28 Thread outre
Hi, I was wondering if function queries are supported in SOLR1.3? I looked thru http://wiki.apache.org/solr/FunctionQuery, and tried to run an example on my SOLR setup. It doesn't seem though that _val_ hook has any effect on sorting, and "score" parameter doesn't seem to re

Re: what is null value behavior in function queries?

2008-06-13 Thread Chris Hostetter
: is there some way to change this default value (preferably from outside via : a properties file or something similar) It's based on the FieldCache, which thinking about it a bit: the defualts come from the default values of int[], float[], etc... I seem to recall a discussion in the past abo

Re: what is null value behavior in function queries?

2008-06-05 Thread Umar Shah
outside via a properties file or something similar) On Thu, Jun 5, 2008 at 12:42 PM, Umar Shah <[EMAIL PROTECTED]> wrote: > thanks hoss, > > will surely do that. > > -umar > > > > > On Thu, Jun 5, 2008 at 4:35 AM, Chris Hostetter <[EMAIL PROTECTED]> >

Re: what is null value behavior in function queries?

2008-06-05 Thread Umar Shah
thanks hoss, will surely do that. -umar On Thu, Jun 5, 2008 at 4:35 AM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : I am using function queries to rank the results, > : if some/ allthe fields (used in the function ) are missing from the > document > : what will be

Re: what is null value behavior in function queries?

2008-06-04 Thread Chris Hostetter
: I am using function queries to rank the results, : if some/ allthe fields (used in the function ) are missing from the document : what will be the ranking behavior for such documents? Off the top of my head, I believe it's zero, but an easy way to check is to run a simple linear fun

what is null value behavior in function queries?

2008-05-29 Thread Umar Shah
Hi, I am using function queries to rank the results, if some/ allthe fields (used in the function ) are missing from the document what will be the ranking behavior for such documents? thanks -umar

Re: Function Queries

2007-08-16 Thread Pieter Berkel
Hi Yakn, On 17/08/07, Yakn <[EMAIL PROTECTED]> wrote: > One example is that if you have mm being blank in the solrConfig.xml > and not commented out, then it will throw a NumberFormatException. The required format of the mm field is described in more detail here: http://lucene.apache.org/solr/a

Function Queries

2007-08-16 Thread Yakn
ontext: http://www.nabble.com/Function-Queries-tf4280039.html#a12182596 Sent from the Solr - User mailing list archive at Nabble.com.

Re: how to use function queries

2007-05-22 Thread Nick Jenkin
.apache.solr.core.SolrException: undefined field recip Can someone explain the function queries a little clearer and if I would need to use a different query handler? -Mike

how to use function queries

2007-05-21 Thread mike topper
estion of using the _val_: hack in the standard query handler, but when i tried that with recip(rord(date),1,1000,1000)^2 to just test it I got an error saying org.apache.solr.core.SolrException: undefined field recip Can someone explain the function queries a little clearer and if I would

Re: Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-15 Thread Yonik Seeley
On 5/14/07, Mekin Maheshwari <[EMAIL PROTECTED]> wrote: > 2) eliminate the space inside the recip functions This solved it :) I think that issue is probably due to the dismax handler splitting up function queries on whitespace, and not the parsing of the individual function que

Re: Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Chris Hostetter
: I would like to document this along with a little detail about function : queries & may be if I get enough time, simple graphs that I created to help : people choose the right values for using in the function queries. that would be *awesome* : I do see a stub for - http://wiki.apache

Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Mekin Maheshwari
2) eliminate the space inside the recip functions This solved it :) I would like to document this along with a little detail about function queries & may be if I get enough time, simple graphs that I created to help people choose the right values for using in the function queries. I

Re: More about function queries

2007-05-07 Thread Chris Hostetter
: Just wanted to check if there is more documentation about function queries : besides the java doc at : http://lucene.apache.org/solr/api/org/apache/solr/search/QueryParsing.html#parseFunction(java.lang.String,%20org.apache.solr.schema.IndexSchema) unfortunately no, but please feel free to

More about function queries

2007-05-07 Thread Mekin Maheshwari
Hi, Just wanted to check if there is more documentation about function queries besides the java doc at http://lucene.apache.org/solr/api/org/apache/solr/search/QueryParsing.html#parseFunction(java.lang.String,%20org.apache.solr.schema.IndexSchema) Starting with what the fields for all the