Score higher if multiple terms match

2017-06-07 Thread OTH
Hello, I have what I would think to be a fairly simple problem to solve, however I'm not sure how it's done in Solr and couldn't find an answer on Google. Say I have two documents, "TV" and "TV promotion". If the search query is "TV promotion", then, obviously, I would like the document "TV prom

Re: Score higher if multiple terms match

2017-06-07 Thread OTH
t; > > since your default field most likely isnt name, its going to search only > > the default field for it. you can alter this behavior using qf > parameters: > > > > > > > > qf='name^5 text' > > > > > > for example would app

Re: Score higher if multiple terms match

2017-06-07 Thread OTH
n them. That's not true at all; it is indeed returning documents with only either one of the two query terms (so, documents with only 'tv' or only 'promotion' in them). Sorry. You can disregard my question in the last email. Thanks On Thu, Jun 8, 2017 at 2:03 AM, OT

Re: Score higher if multiple terms match

2017-06-08 Thread OTH
th these > terms in the name field either through normal input or synonyms etc. > > You should need something like: > name:tv OR name:promotion OR (name:tv AND name:promotion)^100 > to score all the docs with both terms in the name field higher than just > one. > > B

Token "states" not getting lemmatized by Solr?

2017-08-10 Thread OTH
Hello, It seems for me that the token "states" is not getting lemmatized to "state" by Solr. Eg, I have a document with the value "united states of america". This document is not returned when the following query is issued: q=name:state^1+name:america^1+name:united^1 However, all documents which

Re: Token "states" not getting lemmatized by Solr?

2017-08-10 Thread OTH
e out how to use a different lemmatizer) Thanks On Thu, Aug 10, 2017 at 10:28 PM, Erick Erickson wrote: > saying the field is "text_general" is not sufficient, please post the > analysis chain defined in your schema. > > Also the admin UI>>analysis page will help

Re: Token "states" not getting lemmatized by Solr?

2017-08-10 Thread OTH
ously assumed that the default 'text_general' fieldtype in Solr probably handles this; but seems that's not the case. I realize that what is going on with me is something else. I will start another email thread for that. Thanks. On Thu, Aug 10, 2017 at 11:33 PM, OTH wrote: > Hi, &g

Need help with query syntax

2017-08-10 Thread OTH
Hello, I have the following use case: I have two fields (among others); one is 'name' and the other is 'type'. 'Name' is the field I need to search, whereas, with 'type', I need to make sure that it has a certain value, depending on the situation. Often, when I search the 'name' field, the sear

Re: Need help with query syntax

2017-08-10 Thread OTH
e > > On Thu, Aug 10, 2017 at 4:36 PM, OTH wrote: > > > Hello, > > > > I have the following use case: > > > > I have two fields (among others); one is 'name' and the other is 'type'. > > 'Name' is the field I need to search

Re: Need help with query syntax

2017-08-11 Thread OTH
results as you're > discovering. > > Best > Erick > > On Thu, Aug 10, 2017 at 3:00 PM, OTH wrote: > > Thanks for the help! > > That's resolved the issue. > > > > On Fri, Aug 11, 2017 at 1:48 AM, David Hastings < > > hastings.recurs...@gmail

Re: Solr JDBC with Core (vs Collection)

2017-10-16 Thread OTH
"enron" collection. > > This will release as part of the first release of the significantTerms > expression in Solr 6.5. > > Solr 6.6 will likely have support for all stream source and parallel > SQL/JDBC. > > > > Joel Bernstein > http://joelsolr.blogspot.com

Auto-generate unique key when adding documents from SolrJ

2017-02-26 Thread OTH
Hello all, First of all, I am very new to Solr. I am using Solr version 6.4.1. I have a Solr core (non-cloud), where there is a mandatory unique key field called "id". I am trying to add documents to the core from Java, without having to specify the "id" field explicitly; i.e. to have it auto-g

Re: Auto-generate unique key when adding documents from SolrJ

2017-02-26 Thread OTH
urces for Solr users, new and experienced > > > On 26 February 2017 at 10:11, OTH wrote: > > Hello all, > > > > First of all, I am very new to Solr. > > > > I am using Solr version 6.4.1. I have a Solr core (non-cloud), where > there > > is a mand

Add fieldType from Solr API

2017-02-26 Thread OTH
Hello, I am new to Solr, and am using Solr v. 6.4.1. I need to add a new "fieldType" to my schema. My version of Solr is using the "managed-schema" XML file, which I gather one is not supposed to modify directly. Is it possible to add a new fieldType using the Solr Admin via the browser? The "

Viewing more than 10 results in Solr Admin

2017-02-28 Thread OTH
Hello, In the browser-based Solr Admin, in the 'Query' page, the "start" and "rows" input boxes have default values of 0 and 10 respectively, but these values are grayed out the input boxes are not allowing me to change their values. Therefore, whenever I submit a query on this page, I am only ev

Re: Viewing more than 10 results in Solr Admin

2017-02-28 Thread OTH
xt field for: > Start,rows. See the screen shots attached. > > > > > On 2/28/17, 10:08 AM, "OTH" wrote: > > Hello, > > In the browser-based Solr Admin, in the 'Query' page, the "start" and > "rows" input boxes have defau

Re: Viewing more than 10 results in Solr Admin

2017-02-28 Thread OTH
"q":"*:*&start=0&rows=20", "indent":"on", "wt":"json", "_":"1488305315988"}}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrExc

Tokenized querying

2017-03-07 Thread OTH
Hello, I am new to Solr. I am using v. 6.4.1. I have what is probably a pretty simple question. Let's say I have these documents with the following values in a single field (let's call it "name"): sando...@company.example.com sandb...@company.example.com sa...@company.example.com Sancho Landol

Re: Tokenized querying

2017-03-07 Thread OTH
ld, rather than with the original field. > > http://www.solr-start.com/ - Resources for Solr users, new and experienced > > > On 7 March 2017 at 09:30, OTH wrote: > > Hello, > > > > I am new to Solr. I am using v. 6.4.1. I have what is probably a pretty >

Managed schema vs schema.xml

2017-03-07 Thread OTH
Hello I'm sure this has been asked many times but I'm having some confusion here. I understand that managed-schema is not supposed to be edited by hand but only via the "API". All I understand about this "API" however, is that it may be referring to the "Schema" page in the Solr browser-based Ad

Re: Tokenized querying

2017-03-07 Thread OTH
hedebugParameter > . And if you do, https://www.manning.com/books/relevant-search is your > friend and I think Manning is running 40% discount right now on > Twitter. > > Regards, >Alex. > > Regards, >Alex. > > http://www.solr-start.com/ - Resources for Sol

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
Hi, Thanks, that sufficiently answers the question. It's especially good to know now that hand-editing is fine, as long as it's separated from API calls with restarts in between. Thanks On Tue, Mar 7, 2017 at 9:57 PM, Shawn Heisey wrote: > On 3/7/2017 9:41 AM, OTH wrote: > >

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
olr directly for the missing bits. Again, RTARG (.. Awesome > Reference Guide) and then come back with specifics: > https://cwiki.apache.org/confluence/display/solr/Schema+API > > Regards, >Alex. > > ---- > http://www.solr-start.com/ - Resources for Solr users, new and e

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
In the reference guide, in the chapter named "The Well Configured Solr Instance", it says (I'm copying+pasting from the PDF version) : Switching from Managed Schema to Manually Edited schema.xml > If you have started Solr with managed schema enabled and you would like to > switch to manually editi

Solr JDBC with Core (vs Collection)

2017-03-08 Thread OTH
Hello, >From the examples I am seeing online and in the reference guide ( https://cwiki.apache.org/confluence/display/solr/Solr+JDBC+-+SQuirreL+SQL), I can only see Solr JDBC being used against a collection. Is it possible however to use it with a core? What should the JDBC URL be like in that c

Re: Solr JDBC with Core (vs Collection)

2017-03-08 Thread OTH
on). > > Are you trying to use it with non-cloud setup? > > Regards, >Alex. > > http://www.solr-start.com/ - Resources for Solr users, new and experienced > > > On 8 March 2017 at 14:02, OTH wrote: > > Hello, > > > > From the examples I

Best way to synonymize with Wordnet

2017-03-13 Thread OTH
Hello all, I am looking to incorporate synonymization using Wordnet in my Solr application. Does any one have any advice on how to do this, and what the 'best practices' would be in this regard? Much thanks

Re: Data Import

2017-03-17 Thread OTH
> > Also, solrj is good when you want your RDBMS updates make immediately > available in solr. How can SolrJ be used to make RDBMS updates immediately available? Thanks On Fri, Mar 17, 2017 at 2:28 PM, Sujay Bawaskar wrote: > Hi Vishal, > > As per my experience DIH is the best for RDBMS to solr

Re: Data Import

2017-03-17 Thread OTH
me code that updates RDBMS, as > > opposed to be reverse engineering the changes from looking at the DB > > content. This would be especially the case for Delete changes. > > > > Regards, > >Alex. > > > > http://www.solr-start.com/ - Resources fo

Re: Data Import

2017-03-17 Thread OTH
gt; > > content. This would be especially the case for Delete changes. > > > > > > Regards, > > >Alex. > > > > > > http://www.solr-start.com/ - Resources for Solr users, new and > > experienced > > > > > > > > >

Searchable archive of this mailing list

2017-03-31 Thread OTH
Hi all, Is there a searchable archive of this mailing list? I'm asking just so I don't have to post a question in the future which may have been answered before already. Thanks

Possible bug

2017-04-06 Thread OTH
I'm not sure if any one else had this problem, but this is a problem I had: I'm using Solr 6.4.1, on Windows, and when would run 'bin\solr delete -c ', it wouldn't work properly. It turned out it was because there was a space character which shouldn't have been there at the end of line 1380 in th

Autosuggestion

2017-04-12 Thread OTH
Hello, Is there any recommended way to achieve auto-suggestion in textboxes using Solr? I'm new to Solr, but right now I have achieved this functionality by using an example I found online, doing this: I added a copy field, which is of the following type:

Re: Autosuggestion

2017-04-13 Thread OTH
he built-in feature, > first. These posts can help you to get a quick overview: > > https://cwiki.apache.org/confluence/display/solr/Suggester > http://alexbenedetti.blogspot.it/2015/07/solr-you-complete-me.html > https://lucidworks.com/2015/03/04/solr-suggester/ > > HTH, >

Need help with auto-suggester

2017-04-13 Thread OTH
Hello, I've followed the steps here to set up auto-suggest: https://lucidworks.com/2015/03/04/solr-suggester/ So basically I configured the auto-suggester in solrconfig.xml, where I told it which field in my index needs to be used for auto-suggestion. The problem is: When the user searches in th

Re: Autosuggestion

2017-04-13 Thread OTH
suggesters > cannot. > > Best, > Erick > > On Thu, Apr 13, 2017 at 6:24 AM, OTH wrote: > > Thanks, that's very helpful! > > The third link especially is quite helpful. > > Is there any recommendation regarding using FST-based vs AnalyzingInfix > > sug

Re: Need help with auto-suggester

2017-04-14 Thread OTH
opy field and copy to it from all the fields you want to > retrieve the suggestions from and then use that field with the suggester. > > On Thu 13 Apr, 2017, 23:21 OTH, wrote: > > > Hello, > > > > I've followed the steps here to set up auto-suggest: > > h

Re: Need help with auto-suggester

2017-04-14 Thread OTH
copy field and copy to it from all the fields you want > to > >> retrieve the suggestions from and then use that field with the > suggester. > >> > >> On Thu 13 Apr, 2017, 23:21 OTH, wrote: > >> > >>> Hello, > >>> > >>&g

Re: Need help with auto-suggester

2017-04-14 Thread OTH
e that JSON > separately. Otherwise, it was a pretty clean solution. > > wunder > Walter Underwood > wun...@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > > > On Apr 14, 2017, at 1:57 PM, OTH wrote: > > > > Thanks, that works! But is it possible t

Re: Need help with auto-suggester

2017-04-15 Thread OTH
there. It comes back as a string, so you have to decode that JSON > separately. Otherwise, it was a pretty clean solution. > > wunder > Walter Underwood > wun...@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > > > On Apr 14, 2017, at 1:57 PM, OTH wrote:

Re: Need help with auto-suggester

2017-04-15 Thread OTH
und: 10, > > suggestions: [ > > { > > term: "microsoft office", > > weight: 14, > > payload: "{"count": 1534255, "id": "microsoft office"}" > > }, > > { > > term: "microsoft excel", > > we

AnalyzingInfixSuggester performance

2017-04-16 Thread OTH
Hello, >From what I understand, the AnalyzingInfixSuggester is using a simple Lucene query; so I was wondering, how then would this suggester have better performance than using a simple Solr 'select' query on a regular Solr index (with an asterisk placed at the start and end of the query string).

Need help with Query Syntax

2017-04-17 Thread OTH
If I submit the query: "select?q=field:*san*" Then it works as expected; returning all values in the field which contain the string "san". However if I submit: "select?q=field:*san *" It then seems to return all the values of the field, regardless of what the value is (!) I only wish in this cas

Re: Need help with Query Syntax

2017-04-17 Thread OTH
The field type is "text_general". On Mon, Apr 17, 2017 at 7:15 PM, Binoy Dalal wrote: > I think it returns everything because your query matches *san or " *". > What is your field type definition? > > On Mon 17 Apr, 2017, 19:12 OTH, wrote: > > > If I su

Re: Need help with Query Syntax

2017-04-17 Thread OTH
Ok, I get it now, it's because the field has been indexed as tokens. So maybe I should use a field which does not have a tokenizer index? I'll try something like that. Thanks On Mon, Apr 17, 2017 at 9:16 PM, OTH wrote: > The field type is "text_general". > > On

Re: Need help with Query Syntax

2017-04-17 Thread OTH
seems to not be possible with the Suggester Thanks On Mon, Apr 17, 2017 at 10:46 PM, Binoy Dalal wrote: > Use the analyser available in the solr admin console to find out exactly > how your query is analysed. That should give you a lot more information. > > On Mon 17 Apr, 2017,

Re: Need help with Query Syntax

2017-04-17 Thread OTH
think I've found another workaround though which might work for me. Thanks On Tue, Apr 18, 2017 at 12:56 AM, Mikhail Khludnev wrote: > This can be done with escaping space > select?q=field:*san\ * > Probably sow=false in new version might also helo > > > On Mon, Apr 17, 2017 at

Re: AnalyzingInfixSuggester performance

2017-04-18 Thread OTH
t; the index-time sort then you lose that benefit. > > Mike McCandless > > http://blog.mikemccandless.com > > On Sun, Apr 16, 2017 at 11:46 AM, OTH wrote: > > > Hello, > > > > From what I understand, the AnalyzingInfixSuggester is using a simple > > Lucene query

Score certain documents higher based on a weight field

2018-04-09 Thread OTH
Hello, Is there a way to assign a higher score to certain documents based on a 'weight' field? E.g., if I have the following two documents: { "name":"United Kingdom", "weight":2730, } { "name":"United States of America", "weight":11246, } Currently, if I issue th

Exact match

2019-12-02 Thread OTH
Hello, What would be the best way to get exact matches (if any) to a query? E.g.: Let's the document text is: "united states of america". Currently, any query containing one or more of the three words "united", "states", or "america" will match with the above document. I would like a way so th