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
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
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
Thanks Jan, I was not aware of this, appreciate your help.
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
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.
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
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 *
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
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.
>
>
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
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
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
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({
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
Thanks Mikhail
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
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
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
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
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,
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_
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
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
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.
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
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:
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
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
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
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
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
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
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
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
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: --
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?
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.
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
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
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
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
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
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
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
:"{!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
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
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
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.
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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.
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.
Its Friday dude. Give it a couple days. ;)
On Fri, 2010-04-02 at 11:50 -0800, Blargy wrote:
> Bueller? Anyone? :)
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.
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.
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
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
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
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
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
: 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
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.
: > 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
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'
: 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 *:*
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
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
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
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
: 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
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]>
>
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
: 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
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
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
ontext:
http://www.nabble.com/Function-Queries-tf4280039.html#a12182596
Sent from the Solr - User mailing list archive at Nabble.com.
.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
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
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
: 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
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
: 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
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
97 matches
Mail list logo