Re: Change score with distance SortField

2023-02-06 Thread Adrien Grand
would like to influence the score using geographical distance. More distant > documents lower the score. > I have sort field: > SortField geoSort = LatLonDocValuesField.newDistanceSort("location", > pos.getLatitude(), pos.getLongitude()); > > Then I tried add this sor

Change score with distance SortField

2023-02-06 Thread Michal Hlavac
Hi, I would like to influence the score using geographical distance. More distant documents lower the score. I have sort field: SortField geoSort = LatLonDocValuesField.newDistanceSort("location", pos.getLatitude(), pos.getLongitude()); Then I tried add this sort field to SimpleBind

Usage of score() in Own Query Implementation

2021-05-25 Thread Tim Sockel
ch of other Weight objects stored in an array "conditionWeights" which are also available in my CQScorer class. Now, I "just" want to get the scores from the respective query for some document. Thus, in CQScorer's score() method, I tried "conditionScores[i] = this.conditionW

Re: How can I boost score of a document if two consecutive terms match

2020-11-02 Thread Michael Froh
okenize the queries and add all terms to a boolean query, the > document will have the same score for the two queries, but what I want is > that b scores higher than a, what similarity should I use, or how can I > tweak the internal of Lucene to achieve the goal? > > Please note th

How can I boost score of a document if two consecutive terms match

2020-10-30 Thread YAN PAN
l terms to a boolean query, the document will have the same score for the two queries, but what I want is that b scores higher than a, what similarity should I use, or how can I tweak the internal of Lucene to achieve the goal? Please note that I cannot extract the phrase "new year" at

Re: About custom score using Solr8/Lucene8

2020-07-08 Thread Michael Sokolov
ith the getValues code. > > > > > > > > > > > > public DoubleValues getValues(LeafReaderContext ctx, DoubleValues > > > > scores) > > > > > > throws IOException { > > > > > > > > > > > > The field I have

Re: About custom score using Solr8/Lucene8

2020-07-07 Thread Vincenzo D'Amore
hrows IOException { > > > > > > > > > > The field I have to read is a binary field, and I can't find an > example > > > > > how to read a binary field from LeafReaderContext > > > > > > &g

Re: About custom score using Solr8/Lucene8

2020-07-06 Thread Michael Sokolov
afReaderContext > > > > > > > > Any help appreciated. > > > > > > > > Best regards, > > > > Vincenzo > > > > > > > > On Thu, Jul 2, 2020 at 1:19 PM Vincenzo D&

Re: About custom score using Solr8/Lucene8

2020-07-06 Thread Vincenzo D'Amore
ing around to find an inspiring > > >> example... > > >> > > >> On Thu, Jul 2, 2020 at 12:55 PM Mikhail Khludnev > wrote: > > >> > > >>>

Re: About custom score using Solr8/Lucene8

2020-07-06 Thread Michael Sokolov
understand how to extend > >> DoubleValuesSource class, now I'm looking around to find an inspiring > >> example... > >> > >> On Thu, Jul 2, 2020 at 12:55 PM Mikhail Khludnev wrote: > >> > >>> Hi, Vincenzo. > >>> > >

Re: About custom score using Solr8/Lucene8

2020-07-05 Thread Vincenzo D'Amore
gt; Again, @Federico Pici or anybody, did you figure out how to >>> > port CustomScoreQuery in Solr8? >>> > >>> > On Tue, Jul 23, 2019 at 1:05 AM Xiaofei wrote: >>> > >>> > > @Federico Pici, did you figure out on how to produce customized

Re: About custom score using Solr8/Lucene8

2020-07-03 Thread Vincenzo D'Amore
> Again, @Federico Pici or anybody, did you figure out how to >> > port CustomScoreQuery in Solr8? >> > >> > On Tue, Jul 23, 2019 at 1:05 AM Xiaofei wrote: >> > >> > > @Federico Pici, did you figure out on how to produce customized score >>

Re: About custom score using Solr8/Lucene8

2020-07-02 Thread Vincenzo D'Amore
Jul 2, 2020 at 9:58 AM Vincenzo D'Amore > wrote: > > > Again, @Federico Pici or anybody, did you figure out how to > > port CustomScoreQuery in Solr8? > > > > On Tue, Jul 23, 2019 at 1:05 AM Xiaofei wrote: > > > > > @Federico Pici, did you

Re: About custom score using Solr8/Lucene8

2020-07-02 Thread Vincenzo D'Amore
On Thu, Jul 2, 2020 at 10:32 AM Diego Ceccarelli (BLOOMBERG/ LONDON) < dceccarel...@bloomberg.net> wrote: > Vincenzo, are you talking about > https://lucene.apache.org/core/7_4_0/queries/org/apache/lucene/queries/CustomScoreQuery.html > ? > > Yep. I was just trying to figure it out how to port a c

Re: About custom score using Solr8/Lucene8

2020-07-02 Thread Mikhail Khludnev
; > @Federico Pici, did you figure out on how to produce customized score in > > Solr > > 8? > > > > > > > > -- > > Sent from: > > http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html > > > > --

Re: About custom score using Solr8/Lucene8

2020-07-02 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
score using Solr8/Lucene8 Again, @Federico Pici or anybody, did you figure out how to port CustomScoreQuery in Solr8? On Tue, Jul 23, 2019 at 1:05 AM Xiaofei wrote: > @Federico Pici, did you figure out on how to produce customized score in > Solr > 8? > > > > -- > Sent from

Re: About custom score using Solr8/Lucene8

2020-07-01 Thread Vincenzo D'Amore
Again, @Federico Pici or anybody, did you figure out how to port CustomScoreQuery in Solr8? On Tue, Jul 23, 2019 at 1:05 AM Xiaofei wrote: > @Federico Pici, did you figure out on how to produce customized score in > Solr > 8? > > > > -- > Sent from: > http://lucene.

Re: Use custom score in ConstantScoreQuery

2019-12-10 Thread Stamatis Zampetakis
rom: Stamatis Zampetakis > > Sent: Monday, December 9, 2019 10:42 AM > > To: java-user@lucene.apache.org > > Subject: Re: Use custom score in ConstantScoreQuery > > > > Thanks for you reply Adrien! > > Can you clarify what is the second way? > > At the momen

RE: Use custom score in ConstantScoreQuery

2019-12-09 Thread Uwe Schindler
e eMail: u...@thetaphi.de > -Original Message- > From: Stamatis Zampetakis > Sent: Monday, December 9, 2019 10:42 AM > To: java-user@lucene.apache.org > Subject: Re: Use custom score in ConstantScoreQuery > > Thanks for you reply Adrien! > Can you clarify what is the second way?

Re: Use custom score in ConstantScoreQuery

2019-12-09 Thread Aditya Varun Chadha
By wrapping the constant score query inside a BoostQuery? That’s how elasticsearch handles boosts on arbitrary queries, for example. On Mon 9. Dec 2019 at 10:42, Stamatis Zampetakis wrote: > Thanks for you reply Adrien! > Can you clarify what is the second way? > At the moment I have

Re: Use custom score in ConstantScoreQuery

2019-12-09 Thread Stamatis Zampetakis
Thanks for you reply Adrien! Can you clarify what is the second way? At the moment I haven't found a way (apart from creating my own Query classes) to say that a query will always return a score of 0.5 for each document. On Mon, Dec 9, 2019 at 8:16 AM Adrien Grand wrote: > Hi Stamati

Re: Use custom score in ConstantScoreQuery

2019-12-08 Thread Adrien Grand
Hi Stamatis, I personally like the current way things work. If we added the ability to set a custom score on ConstantScoreQuery, then we'd end up with two ways to do the same thing, which I like to avoid whenever possible. On Sun, Dec 8, 2019 at 10:07 PM Stamatis Zampetakis wrote: >

Re: Use custom score in ConstantScoreQuery

2019-12-08 Thread Stamatis Zampetakis
Small reminder. Any input on this? Thanks, Stamatis On Mon, Dec 2, 2019 at 12:10 PM Stamatis Zampetakis wrote: > Hi all, > > Currently ConstantScoreQuery [1] returns a constant score equal to 1 for > every document that matches the query. > > I would like to use the ConstantS

Use custom score in ConstantScoreQuery

2019-12-02 Thread Stamatis Zampetakis
Hi all, Currently ConstantScoreQuery [1] returns a constant score equal to 1 for every document that matches the query. I would like to use the ConstantScoreQuery but with a different score value that I can pass explicitly (via the constructor for instance). This change may also benefit some

Re: Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Uwe Schindler
In short: As it matches nothing, it cannot modify the score. Scores of documents not excluded are not modified, so it behaves like zero. In short: it's the opposite of FILTER clauses. Uwe Am August 4, 2019 6:26:29 PM UTC schrieb Atri Sharma : >MUST_NOT represents a clause which must n

Re: Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Atri Sharma
MUST_NOT represents a clause which must not match against a document in order for it to be qualified as a hit (think of SQL’s NOT IN). MUST_NOT clauses are used as filters to eliminate candidate documents. On Sun, 4 Aug 2019 at 23:11, Claude Lepere wrote: > Hello! > > What score of

Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Claude Lepere
Hello! What score of a hit in response to a query that begins with the clause MUST_NOT? Is it 0 or something else? What does it mean? How is it calculated? Thank you in advance. Claude Lepère

Re: About custom score using Solr8/Lucene8

2019-07-22 Thread Xiaofei
@Federico Pici, did you figure out on how to produce customized score in Solr 8? -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html - To unsubscribe, e-mail: java-user-unsubscr

Re: how to find out each score contribution from booleanquery components

2019-06-28 Thread baris . kazar
One thing i noticed is that the score is the same for the first 1800 results, that is not expected, right? Best regards On 6/27/19 3:07 PM, baris.ka...@oracle.com wrote: the index has "united states" and still investigating why MAINS does not return MAIN but MAINK etc. does r

Re: how to find out each score contribution from booleanquery components

2019-06-27 Thread baris . kazar
olean clause or any other nested query. Going from bottom to top: Term query on countryDFLT = 'states', but no term matched this value --> score is 0.0 for the term query "countryDFLT:states" Term query is wrapped into a 'must' clause, but the term query

Re: how to find out each score contribution from booleanquery components

2019-06-27 Thread baris . kazar
d the leading "0.0" values you are seeing are the individual contributions of each boolean clause or any other nested query. Going from bottom to top: Term query on countryDFLT = 'states', but no term matched this value --> score is 0.0 for the term query "countryDFLT:sta

Re: how to find out each score contribution from booleanquery components

2019-06-27 Thread Erick Erickson
; values you > are seeing are the individual contributions of each boolean clause or > any other nested query. > > Going from bottom to top: > > Term query on countryDFLT = 'states', but no term matched this value > --> score is 0.0 for the term query "countr

Re: how to find out each score contribution from booleanquery components

2019-06-27 Thread András Péteri
Hi Baris, Explanation's output is hierarchical, and the leading "0.0" values you are seeing are the individual contributions of each boolean clause or any other nested query. Going from bottom to top: Term query on countryDFLT = 'states', but no term matched this value

Re: how to find out each score contribution from booleanquery components

2019-06-27 Thread baris . kazar
Hi,- Any ideas on what might be happening? maybe i am missing, is there an api to look into each contribution of score into total scrore from the booleanquery? Best regards On 6/26/19 2:29 PM, Baris Kazar wrote: All must queries (and the rest of course) work ok when i search MAINK, MAINL

Re: how to find out each score contribution from booleanquery components

2019-06-26 Thread Baris Kazar
the rest is phrase query as they are correct that is why i want to see each score from each of the component of the booleanquery. so far i checked Lucene but could not find a way to see each contributing score to the total score for each result hit document. Best regards - Original

Re: how to find out each score contribution from booleanquery components

2019-06-26 Thread Atri Sharma
ery’s type (phrase, term etc). > > > > Could you post your query and the explain plan of IndexSearcher post the > > rewrite? > > > > On Wed, 26 Jun 2019 at 6:46 PM, wrote: > > > >> Hi,- > >> > >>how can one find out each score c

Re: how to find out each score contribution from booleanquery components

2019-06-26 Thread baris . kazar
the actual clauses (whether they are SHOULD, MUST, MUST_NOT), each query’s type (phrase, term etc). Could you post your query and the explain plan of IndexSearcher post the rewrite? On Wed, 26 Jun 2019 at 6:46 PM, wrote: Hi,-    how can

Re: how to find out each score contribution from booleanquery components

2019-06-26 Thread baris . kazar
ery and the explain plan of IndexSearcher post the rewrite? On Wed, 26 Jun 2019 at 6:46 PM, wrote: Hi,- how can one find out each score contribution from booleanquery components? Best regards - To unsubscribe, e-mail: ja

Re: how to find out each score contribution from booleanquery components

2019-06-26 Thread Atri Sharma
It depends a lot on the actual clauses (whether they are SHOULD, MUST, MUST_NOT), each query’s type (phrase, term etc). Could you post your query and the explain plan of IndexSearcher post the rewrite? On Wed, 26 Jun 2019 at 6:46 PM, wrote: > Hi,- > > how can one find out e

how to find out each score contribution from booleanquery components

2019-06-26 Thread baris . kazar
Hi,-  how can one find out each score contribution from booleanquery components? Best regards - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
score. Using my (hopefully) custom score i would be able to give documents a “value” or “score” (based on factors that are outside search terms). For example with a /solr/collection_1/select/?q=*.* first documents could be the ones a user viewed most and that contains a certain quantity of

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
@lucene.apache.org Subject: Re: About custom score using Solr8/Lucene8 Diego it could be a nice workaround in case i was not able to perform custom scoring (or in case custom scoring function would generate a slow query) Thanks I still hope i will be able to implement a custom score function in some

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Diego it could be a nice workaround in case i was not able to perform custom scoring (or in case custom scoring function would generate a slow query) Thanks I still hope i will be able to implement a custom score function in some way I was almost able to achieve such result with

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Alessandro Benedetti
t; the were opened by user (and other key factors based on documents usage). > So, maybe weekly, we should update this “global” factors that would affect > each user’s document score. If this week i opened, for example, more > documents of typeA and less of typeB, ALL documents of typeA

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
based on documents usage). So, maybe weekly, we should update this “global” factors that would affect each user’s document score. If this week i opened, for example, more documents of typeA and less of typeB, ALL documents of typeA would be more important of all documents of typeB (this is just a

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
why would you need to reindex all the users documents everynight? is the score affected by the number of documents per user? Also for scores, you might be able to use in-place updates: https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-In

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Well, my index is basically a list of documents of users. so i could say i got a couple of millions of documents per user. I need to produce a score that is unrelated with search term (something like “give me documents that are the most important to user”). I would search for documents of a

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
Hi Federico, Could you give more details on what is the score that you want to produce? how big is the collection? Is the score affected by the query? if not, would be possible to store the score with the document? Cheers, Diego From: java-user@lucene.apache.org At: 05/09/19 08:13:35To

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
he fourth item at > http://lucene.apache.org/core/8_0_0/MIGRATE.html ? > > On Wed, May 8, 2019 at 5:46 PM Federico Pici > wrote: > >> Hi, >> >> i was trying to implement custom score inside my solr8 instance. >> On google i found some examples, all focused on

Re: About custom score using Solr8/Lucene8

2019-05-08 Thread Mikhail Khludnev
Hello. Have you checked the fourth item at http://lucene.apache.org/core/8_0_0/MIGRATE.html ? On Wed, May 8, 2019 at 5:46 PM Federico Pici wrote: > Hi, > > i was trying to implement custom score inside my solr8 instance. > On google i found some examples, all focu

About custom score using Solr8/Lucene8

2019-05-08 Thread Federico Pici
Hi, i was trying to implement custom score inside my solr8 instance. On google i found some examples, all focused on using CustomScoreProvider and CustomScoreQuery classes. This classes have been removed in Solr8/Lucene8 and, from Lucene 8 changeling, i saw a developer /contributor saying to

RE: Upper limit on Score

2019-04-17 Thread Uwe Schindler
No there is no limit. - Uwe Schindler Achterdiek 19, D-28357 Bremen https://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Kevin Manuel > Sent: Wednesday, April 17, 2019 7:38 PM > To: java-user@lucene.apache.org > Subject: Upper limit on Score

Upper limit on Score

2019-04-17 Thread Kevin Manuel
Hi, I was just wondering is there an upper limit to the score that can be generated for a non-constant score query? Thanks, Kevin

Re: Lucene scoring overall score

2018-07-17 Thread Adrien Grand
You could use IndexSearcher#explain, which tells you how the score of a document is computed. Le mar. 17 juil. 2018 à 19:06, a écrit : > Hi,- > > how can i check the contributions from different fields indexed in the > hits doc's score?

Lucene scoring overall score

2018-07-17 Thread baris . kazar
Hi,- how can i check the contributions from different fields indexed in the hits doc's score? Best regards - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-u

Re: getting Lucene Docid from inside score()

2018-03-10 Thread Erick Erickson
id, the same id that is returned, after > performing a search(), in the form of topDocs.scoreDocs. > ScoreDoc[] hits; > indexSearcher.search(luceneQuery, collector); > topDocs = collector.topDocs(); > hits = topDocs.scoreDocs; > System.out.

Re: getting Lucene Docid from inside score()

2018-03-10 Thread dwaipayan . roy
doc); // I want this docid inside score() > If you still want to get the internal ID, just specify the > pseudo-field [docid], as: "fl=id,[docid]" I didn't get your suggestion properly. Can you please explain a little? I will be waiting for you reply. With regards, Dwaipaya

Re: getting Lucene Docid from inside score()

2018-03-09 Thread Erick Erickson
On Mar 9, 2018 5:06 AM, "Dwaipayan Roy" wrote: >> >> > While searching, I want to get the lucene assigned docid (that starts from >> > 0 to the number of documents -1) of a document having a particular query >> > term. >> > >> > From insid

Re: getting Lucene Docid from inside score()

2018-03-09 Thread dwaipayan . roy
t the lucene assigned docid (that starts from > > 0 to the number of documents -1) of a document having a particular query > > term. > > > > From inside the score(), printing 'doc' or calling docId() is returning a > > docid which, I think, is the internal do

Re: getting Lucene Docid from inside score()

2018-03-09 Thread Dwaipayan Roy
arching, I want to get the lucene assigned docid (that starts from> > > 0 to the number of documents -1) of a document having a particular query> > > term.> > >> > > From inside the score(), printing 'doc' or calling docId() is returning a> > >

Re: getting Lucene Docid from inside score()

2018-03-09 Thread Michael Sokolov
leaf reader. On Mar 9, 2018 5:06 AM, "Dwaipayan Roy" wrote: > While searching, I want to get the lucene assigned docid (that starts from > 0 to the number of documents -1) of a document having a particular query > term. > > From inside the score(), printing 'doc' o

getting Lucene Docid from inside score()

2018-03-09 Thread Dwaipayan Roy
While searching, I want to get the lucene assigned docid (that starts from 0 to the number of documents -1) of a document having a particular query term. >From inside the score(), printing 'doc' or calling docId() is returning a docid which, I think, is the internal docid of a seg

Re: COST vs SCORE vs WEIGHT

2017-12-01 Thread Adrien Grand
ams_vendor, BooleanClause.Occur.SHOULD) > .add(params_model, BooleanClause.Occur.SHOULD) > .add(params_value, BooleanClause.Occur.SHOULD) > .add(param_name, BooleanClause.Occur.SHOULD) > .setMinimumNumberShouldMatch(1) > .build() > > > ConstTe

Re: COST vs SCORE vs WEIGHT

2017-11-30 Thread Vadim Gindin
se.Occur.SHOULD) .add(param_name, BooleanClause.Occur.SHOULD) .setMinimumNumberShouldMatch(1) .build() ConstTermQuery here is my custom Query that creates own WEIGHT and then SCORE. Created score returns just specified score in constructor (4 for "params_name"). Test

Re: COST vs SCORE vs WEIGHT

2017-11-30 Thread Adrien Grand
expected number of matching documents for this scorer. It is useful in order to run operations in the optimal order Your observation of the behaviour of your BooleanQuery with SHOULD clauses looks wrong: the score of the boolean query is the sum of the scores of the matching sub queries. Le jeu

COST vs SCORE vs WEIGHT

2017-11-30 Thread Vadim Gindin
Hi 1) What is the principal difference between COST vs SCORE vs WEIGHT 2) Assume we have BooleanQuery with 5 TermQuery subqueries that are included via SHOULD condition. Assume we have 5 fields and one subquery is need to search in one field. Some product of MultiFieldQueryParser. In this case

RE: How do I get lucene to score a given document

2017-09-11 Thread Uwe Schindler
e.apache.org > Subject: How do I get lucene to score a given document > > Hello, I am a student of Chinese Academy of Sciences. Search engine that > based on lucene is an important part of our experiment. My question is how > can I get lucene to score the given documents. For example, I

How do I get lucene to score a given document

2017-09-10 Thread 江梓涵
Hello, I am a student of Chinese Academy of Sciences. Search engine that based on lucene is an important part of our experiment. My question is how can I get lucene to score the given documents. For example, I just want lucene to score the document in the given docId set. As far as i know

How to make word-N-gram based query and interpolate each N-gram score to obtain final Lucene score

2016-01-11 Thread Rajen Chatterjee
token (something like the final lucene score should be interpolation of uni-gram score, bi-gram score, tri-gram score,... and so on) Any help is much appreciated. Thanks -- -Regards, Rajen Chatterjee.

Re:Re: ignore score and weight in lucene search

2015-07-30 Thread 丁儒
Woodward >> www.flax.co.uk >> >> >> On 30 Jul 2015, at 05:22, 丁儒 wrote: >> >> > >> > >> > It seems that ConstantScoreQuery use the Weight and Score of the Query >> it wrapperd, like TermWeight and TermScorer , so it can't speed up the >> se

Re: ignore score and weight in lucene search

2015-07-30 Thread András Péteri
. > > Alan Woodward > www.flax.co.uk > > > On 30 Jul 2015, at 05:22, 丁儒 wrote: > > > > > > > It seems that ConstantScoreQuery use the Weight and Score of the Query > it wrapperd, like TermWeight and TermScorer , so it can't speed up the > search, because the wei

Re: ignore score and weight in lucene search

2015-07-30 Thread Alan Woodward
What version of lucene are you using? From Lucene 5.1 you can tell queries to not report scores, which will give you the speedup you require here. Alan Woodward www.flax.co.uk On 30 Jul 2015, at 05:22, 丁儒 wrote: > > > It seems that ConstantScoreQuery use the Weight and Score of

Re:Re: ignore score and weight in lucene search

2015-07-29 Thread 丁儒
It seems that ConstantScoreQuery use the Weight and Score of the Query it wrapperd, like TermWeight and TermScorer , so it can't speed up the search, because the weight and score is still calculated. Maybe i make it wrong, but i did some test, the search time of ‘ new ConstantScoreQuer

Re: ignore score and weight in lucene search

2015-07-29 Thread Jack Krupansky
ConstantScoreQuery is the proper approach. What specific failure did you encounter? -- Jack Krupansky On Wed, Jul 29, 2015 at 7:09 AM, 丁儒 wrote: > Hi, all > Currently i'm using lucene. But i don't care the score and weight, i > just need the documents meets the query.

ignore score and weight in lucene search

2015-07-29 Thread 丁儒
Hi, all Currently i'm using lucene. But i don't care the score and weight, i just need the documents meets the query. I tried some way to ignore the score, like rewrite TermQury, disable the TermWeight and TermScore, but there are a lot of queries, and this is incompatible with Q

Re: Calculate the score of an arbitrary string vs a query?

2015-04-11 Thread Sujit Pal
ler set) for a client. So I calculated the z-score (across all concepts) for both content sets and used that to rescale the concept scores of the old set to the new set. Although the underlying math was a bit sketchy, the merged results looked quite good. Hope this helps, -sujit On Fri, Apr

Re: Calculate the score of an arbitrary string vs a query?

2015-04-10 Thread Jack Krupansky
/org/apache/lucene/search/IndexSearcher.html#explain(org.apache.lucene.search.Query, int) -- Jack Krupansky On Fri, Apr 10, 2015 at 4:15 PM, Gregory Dearing wrote: > Hi Ali, > > The short answer to your question is... there's no good way to create a > score from your result stri

Re: Calculate the score of an arbitrary string vs a query?

2015-04-10 Thread Gregory Dearing
Hi Ali, The short answer to your question is... there's no good way to create a score from your result string, without using the Lucene index, that will be directly comparable to the Lucene score. The reason is that the score isn't just a function of the query and the contents of th

Calculate the score of an arbitrary string vs a query?

2015-04-06 Thread Ali Akhtar
Hello, I'm in a situation where a search query string is being submitted simultaneously to Lucene, and to an external API. Results are fetched from both sources. I already have a score available for Lucene results, but I don't have a score for the results fetched from the external so

Re: Lucene not showing Low Score Doc

2014-10-27 Thread Shai Erera
On Mon, Oct 27, 2014 at 3:36 PM, Priyanka Tufchi < priyanka.tuf...@launchship.com> wrote: > Hi > Actually , It should give 10 docs match index but it is giving for 8 . I > checked rest 2 are not matching doc with very less score . Is there any way > I can get those two doc which hav

Re: Lucene not showing Low Score Doc

2014-10-27 Thread Priyanka Tufchi
Hi Actually , It should give 10 docs match index but it is giving for 8 . I checked rest 2 are not matching doc with very less score . Is there any way I can get those two doc which have not matched. And I have set hitpage =10 . Thanks Priyanka On Mon, Oct 27, 2014 at 6:14 AM, Shai Erera

Re: Lucene not showing Low Score Doc

2014-10-27 Thread Shai Erera
top-10. Again, if you have a short test that demonstrates the problem, that would be good. Shai On Mon, Oct 27, 2014 at 2:39 PM, Priyanka Tufchi < priyanka.tuf...@launchship.com> wrote: > Hi All > > Actually I have set of 10 doc which i gave for comparison through apache > lucene now

Lucene not showing Low Score Doc

2014-10-27 Thread Priyanka Tufchi
Hi All Actually I have set of 10 doc which i gave for comparison through apache lucene now when i check score for the set ,out of 10 i am getting 8 in my database , rest 2 are not showing . If the score is very less still lucene should show something , how can i handle it as i have to show all

How to rank by name in the same score when using DisjunctionMaxQuery?

2014-09-22 Thread Harry Yu
Hi everyone, I searched an index with 3 its' fields({"name", "addr", "fullname"}), and used DisjunctionMaxQuery to rank the results by the max score of 3 fields. When the hits have same score, lucene would rank by doc Id(low doc Id would be front). But

RE: will score get changed as document continuously added.

2014-06-11 Thread Chris Hostetter
: Yes the score will change, because the new documents change the : statistics. In general, scores cannot be seen as absolute numbers, they : are only useful to compare between search results of the exact same : query at the same index snapshot. They have no global meaning. This wiki page

RE: will score get changed as document continuously added.

2014-06-11 Thread Uwe Schindler
Yes the score will change, because the new documents change the statistics. In general, scores cannot be seen as absolute numbers, they are only useful to compare between search results of the exact same query at the same index snapshot. They have no global meaning. Uwe - Uwe Schindler H

will score get changed as document continuously added.

2014-06-11 Thread Rajendra Rao
I am planning to implement lucene searching in my project. I have to save score of document corresponding to query . say i have query q and documents d1,d2,d3 .after running lucene i got q1 d30.643 d10.554 d20.462 Now 1 more document d4 comes and above

Doubt in Top Score

2014-02-25 Thread Priyanka Tufchi
Hi All I have Taken 2 Docs: 1 DOC has Skills- 1) Manual Testing 2) Software Testing 2 DOC has Skills-1) SQL 2) RDBMS Now My Child Query has Skills :1)Software Testing 2) Manual Testing and the Parent Query (JobID) which when I give Parent Query (1) then the score it gives 1.8696475 and

RE: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-02-12 Thread andy
iginal Message- >> From: andy [mailto: > yhlweb@ > ] >> Sent: Wednesday, February 12, 2014 10:53 AM >> To: > java-user@.apache >> Subject: RE: Length of the filed does not affect the doc score accurately >> for >> chinese analyzer(SmartChin

RE: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-02-12 Thread Uwe Schindler
affect the doc score accurately for > chinese analyzer(SmartChineseAnalyzer) > > Thanks Uwe,could you please give me a more detail example about how to > change the lucene behavior > > > Uwe Schindler wrote > > Hi Erick, > > > > a statement like " Adding &a

RE: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-02-12 Thread andy
> uwe@ > > >> -Original Message- >> From: Erick Erickson [mailto: > erickerickson@ > ] >> Sent: Wednesday, January 15, 2014 1:30 PM >> To: java-user >> Subject: Re: Length of the filed does not affect the doc score accurately >> f

RE: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-02-12 Thread Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Wednesday, January 15, 2014 1:30 PM > To: java-user > Subject: Re: Length of the filed does not affect

Re: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-02-12 Thread andy
thanks for your reply Erick, this is the case ,But how can I keep the precision of the fields' length? -- View this message in context: http://lucene.472066.n3.nabble.com/Length-of-the-filed-does-not-affect-the-doc-score-accurately-for-chinese-analyzer-SmartChineseAnalyz-tp4111390p4116832

Re: Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-01-15 Thread Erick Erickson
Hi guys, > > As the topic,it seems that the length of filed does not affect the doc score > accurately for chinese analyzer in my source code > > index source code > > private static Directory DIRECTORY; > > > @BeforeClass > public static void before() throws I

Length of the filed does not affect the doc score accurately for chinese analyzer(SmartChineseAnalyzer)

2014-01-15 Thread andy
Hi guys, As the topic,it seems that the length of filed does not affect the doc score accurately for chinese analyzer in my source code index source code private static Directory DIRECTORY; @BeforeClass public static void before() throws IOException { DIRECTORY = new

Re: Using Payloads as a Coefficient For Score At a Custom QParser That extends ExtendedDismaxQParser

2013-12-01 Thread Furkan KAMACI
an its usual > score. I mean I have probabilities of which documents user may want to see > for given keywords. > > I have come up with that idea. I can put a new field to my schema. This > field holds keyword and probability as payload. When a user searches for a > keyword I will calc

Using Payloads as a Coefficient For Score At a Custom QParser That extends ExtendedDismaxQParser

2013-12-01 Thread Furkan KAMACI
Hi; I use Solr 4.5.1 I have a case: When a user searches for some specific keywords some documents should be listed at much more higher than its usual score. I mean I have probabilities of which documents user may want to see for given keywords. I have come up with that idea. I can put a new

Re: question about document-frequency in score

2013-03-22 Thread Simon Willnauer
all statistics in lucene are per field so is document frequency simon On Fri, Mar 22, 2013 at 10:48 AM, Nicole Lacoste wrote: > Hi > > I am trying to figure out if the document-frequency of a term used in > calculating the score. Is it per field? Or is independent of the field

question about document-frequency in score

2013-03-22 Thread Nicole Lacoste
Hi I am trying to figure out if the document-frequency of a term used in calculating the score. Is it per field? Or is independent of the field? Thanks Niki -- * <https://twitter.com/#!/niki_in_france>*

Re: Getting a similarity score for an arbitrary pair of documents or a query and a document

2013-03-06 Thread Emmanuel Espina
larity is a low level class used by some queries (for example TermQueries) but I don't think that you need something so low level from what you describe. Thanks Emmanuel 2013/3/6 Michael O'Leary > Is there an api in Lucene for finding the similarity score for two > documents that

  1   2   3   4   5   6   >