Issue in SolrInputDocument on Upgrade time

2019-12-02 Thread vishal patel
Hi, I am getting below error while converting json to my object. I am using Gson class (gson-2.2.4.jar) to generate json from object and object from json. gson fromJson() method throws below error. Note: This was working fine with solr-solrj-5.2.0.jar but it causing issue when i uses

RE: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread email
Thank you for jumping in @hastings.recurs...@gmail.com I have an index with raw addresses in a nonstandardized format such as "123 main street" or "main street 123", and I am looking to search this index and pull the closest addresses from another raw input with a similar unpredictable format.

Re: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread Dave
I’ll add to that since I’m up. Stopwords are in a practical sense useless and serve no purpose. It’s an old way to save index size that’s not needed any more. You’d need very specific use cases to want to use them. Maybe you do, but generally you never do unless it’s for training a machine or

Re: Convert javabin to json

2019-12-02 Thread Noble Paul
obj = new JavabinCodec().unmarshal(); Utils#writeJson() On Thu, Nov 28, 2019 at 11:54 AM Wei wrote: > > Hi, > > Is there a reliable way to convert solr's javabin response to json format? > We use solrj client with wt=javabin, but want to convert the received > javabin response to json for

RE: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread email
That makes sense, thank you for the clarification! @wun...@wunderwood.org If you can, please build on your explanation as It sounds relevant. -Original Message- From: Dave Sent: Monday, December 2, 2019 7:38 PM To: solr-user@lucene.apache.org Cc: jornfra...@gmail.com Subject: Re: Is

Re: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread Dave
It clarifies yes. You need new fields. In this case something like Address_us Address_uk And index and search them accordingly with different stopword files used in different field types, hence the copy field from “address” into as many new fields as needed > On Dec 2, 2019, at 7:33 PM,

RE: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread email
To clarify, a document would look like this : { address: "123 main Street", country : "US" } What I'd like to do when I configure my index is to apply a set of different stop words to the address field depending on the value of the country. For example, something like this : If (country

Re: Solr Case Insensitive Search while preserving cases in Index and allowing Boolean AND/OR searches

2019-12-02 Thread Emir Arnautović
Hi Lewin, Not sure I follow your example. From what I read, you could have one field lowercased and other not and filter on the first field and facet on the second. There is probably something that I am missing, so some example would probably help. Thanks, Emir -- Monitoring - Log Management -

Re: Exact match

2019-12-02 Thread Erick Erickson
There are two different interpretations of “exact match” going on here, don’t be confused! Emir’s version is “the text has to match the _entire_ input. So a field with “a b c d” will NOT match “a b” or “a b c” or “b c", but only “a b c d”. David’s version is “The text has to contain some

Re: Exact match

2019-12-02 Thread Emir Arnautović
Hi Omer, From performance perspective, it is the best if you index title as a single token: KeywordTokenizer + LowerCaseFilter If you need to query that field in some other way, you can index it differently as some other field using copyField. HTH, Emir -- Monitoring - Log Management -

Re: Exact match

2019-12-02 Thread David Hastings
if the query is in quotes it will work. also, not sure if youve been following, but get rid of: StopFilterFactory and all stopwords, or just make your stop word file empty if you need it to work in non quotes, add them to the query post submission ? On Mon, Dec 2, 2019 at 3:44 PM OTH wrote: >

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

Re: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread Walter Underwood
The best approach is to not use stop words at all. That gives better relevance with less configuration, so it is a total win. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Dec 2, 2019, at 12:24 PM, Jörn Franke wrote: > > You can have different

Re: Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread Jörn Franke
You can have different fields by country. I am not sure about your stop words but if they are not occurring in the other languages then you have not a problem. On the other hand: it you need more than stop words (eg lemmatizing, specialized way of tokenization etc) then you need a different

Is it possible to have different Stop words depending on the value of a field?

2019-12-02 Thread yeikel valdes
Hi, I have an index that stores addresses from different countries. As every country has different stop words, I was wondering if it is possible to apply a different set of stop words depending on the value of a field.  Or do I need different indexes/do itnat the ETL step to accomplish

Re: Is it possible to use the Lucene Query Builder? Is there any API to create boolean queries?

2019-12-02 Thread yeikel valdes
Is there any builder for the XMLQueryParser so that we don't need to build as a String? And what query DSL are you referring to? On Mon, 02 Dec 2019 08:00:57 -1100 m...@apache.org wrote and Query DSL as well. Although, it didn't get the point in the topic starter. On Mon, Dec 2,

Re: Is it possible to use the Lucene Query Builder? Is there any API to create boolean queries?

2019-12-02 Thread Mikhail Khludnev
and Query DSL as well. Although, it didn't get the point in the topic starter. On Mon, Dec 2, 2019 at 9:16 PM Alexandre Rafalovitch wrote: > What about XMLQueryParser: > > https://lucene.apache.org/solr/guide/8_2/other-parsers.html#xml-query-parser > > Regards, >Alex. > > On Wed, 27 Nov

Re: Is it possible to use the Lucene Query Builder? Is there any API to create boolean queries?

2019-12-02 Thread Alexandre Rafalovitch
What about XMLQueryParser: https://lucene.apache.org/solr/guide/8_2/other-parsers.html#xml-query-parser Regards, Alex. On Wed, 27 Nov 2019 at 22:43, wrote: > > I am trying to simulate the following query(Lucene query builder) using Solr > > > > > BooleanQuery.Builder main = new

Re: How to control the number of grouped results [DRUPAL]

2019-12-02 Thread Erick Erickson
This is a Solr parameter, how Drupal allows you to pass it on would probably be a better asked of Drupal. > On Dec 2, 2019, at 10:01 AM, Diego Ceccarelli (BLOOMBERG/ LONDON) > wrote: > > This parameter referers to the Solr request, for example: > >

Re: How to control the number of grouped results [DRUPAL]

2019-12-02 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
This parameter referers to the Solr request, for example: https://lucene.apache.org/solr/guide/7_0/result-grouping.html#grouping-by-query Drupal should expose it in the API, I guess? Cheers, diego From: solr-user@lucene.apache.org At: 12/02/19 14:47:06To: solr-user@lucene.apache.org

Re: How to control the number of grouped results [DRUPAL]

2019-12-02 Thread alee2
Where would I put this parameter ? -- Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: How to control the number of grouped results [DRUPAL]

2019-12-02 Thread Saurabh Sharma
You can use group.limit parameter to get required number of results per group. This value is 1 result per group by default. On Mon, Dec 2, 2019, 7:58 PM alee2 wrote: > Hello everyone, I need some help with the number of results that is > generated > per group, what I need is to control how many

How to control the number of grouped results [DRUPAL]

2019-12-02 Thread alee2
Hello everyone, I need some help with the number of results that is generated per group, what I need is to control how many results appear per group type, currently they are sorting out a little bit in a disorderly way, and I can't get that. end user see all categories, would you like to know if

Re: hi question about solr

2019-12-02 Thread eli chen
first of all thank you very much. i was looking for good resource to read on solr. i actually already tried the term vector. but for it to work i had to set the fl=content which response with the value of content field (which really really big)

Re: hi question about solr

2019-12-02 Thread Charlie Hull
Hi, https://livebook.manning.com/book/solr-in-action/chapter-3 may help (I'd suggest reading the whole book as well). Basically what you're looking for is the 'term position'. The TermVectorComponent in Solr will allow you to return this for each result. Cheers Charlie On 02/12/2019

Re: hi question about solr

2019-12-02 Thread eli chen
yes On Mon, 2 Dec 2019 at 13:29, Bernd Fehling wrote: > In short, > > you are trying to use an indexer as a full-text search engine, right? > > Regards > Bernd > > Am 02.12.19 um 12:24 schrieb eli chen: > > hi im kind of new to solr so please be patient > > > > i'll try to explain what do i

Re: hi question about solr

2019-12-02 Thread Bernd Fehling
In short, you are trying to use an indexer as a full-text search engine, right? Regards Bernd Am 02.12.19 um 12:24 schrieb eli chen: > hi im kind of new to solr so please be patient > > i'll try to explain what do i need and what im trying to do. > > we a have a lot of books content and we

hi question about solr

2019-12-02 Thread eli chen
hi im kind of new to solr so please be patient i'll try to explain what do i need and what im trying to do. we a have a lot of books content and we want to index them and allow search in the books. when someone search for a term i need to get back the position of matchen word in the book for

Re: solr 8.3 indexing wrong values in some fields

2019-12-02 Thread Colvin Cowie
This sounds like https://issues.apache.org/jira/browse/SOLR-13963 Solr 8.3.1 is likely to be available soon - RC2 is at https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-8.3.1-RC2-reva3d456fba2cd1b9892defbcf46a0eb4d4bb4d01f/solr/ Re-index on it, and see if you still have issues. On Sun, 1