Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I tried with other point coordinates and it works fine :) I am still wondering why those coordinates worked with a Polygon though! Downloading JTS Test builder helped me a lot. Thank you so much! Puneeta -- View this message in context: http://lucene.472066.n3.nabble.com/Polygon

Re: Not highlighting "and" and "or"?

2017-06-28 Thread Walter Underwood
Hmm, “and” is missing from the individual terms but present in the phrase. "rawquerystring":"once and again", "querystring":"once and again", "parsedquery":"(+(+DisjunctionMaxQuery(((concept_ai_concepts_names_default:once)^2.0 | (question:once)^2.0 | subjectNames:once | (bookTitle_te

Re: Not highlighting "and" and "or"?

2017-06-28 Thread David Smiley
Hi Walter, No they are not. Does debug=query show that these words are in your parsed query? On Wed, Jun 28, 2017 at 5:13 PM Walter Underwood wrote: > Is there some special casing in the highlighter to skip query syntax > words? The words “and” and “or” don’t get highlighted. > > This is in 6.5

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
This polygon is fairly rectangular with one side having a ton of points. Nonetheless the query point is clearly far apart from it (it's much lower (smaller 'y' dimension). On Wed, Jun 28, 2017 at 10:17 PM puneeta wrote: > Hi David, > Actually my polygon had too many coordinates, so i just omit

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, Actually my polygon had too many coordinates, so i just omitted some while posting my query. Here is my complete multipolygon where the last point is same as the first one: MULTIPOLYGON (((-86.477551331 32.490605651, -86.477637350 32.4903921820001, -86.478257247 32.4905655

Not highlighting "and" and "or"?

2017-06-28 Thread Walter Underwood
Is there some special casing in the highlighter to skip query syntax words? The words “and” and “or” don’t get highlighted. This is in 6.5.0. question html 440 fastVector 1 wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog

Re: Tlogs not being deleted/truncated

2017-06-28 Thread Webster Homer
Sometimes there are subdirectories of tlog files for example this is a directory name tlog.20170624124859032 Why do these come into existence? The sum of the file sizes in the folders seem close to the value returned by the CDCR action=QUEUES On Tue, Jun 27, 2017 at 4:05 PM, Webster Homer wrote:

Re: Suggester and fuzzy/infix suggestions

2017-06-28 Thread Walter Underwood
Yes, but it is better than nothing. Don’t let the unavailable perfect solution keep you from implementing the available good solution. If you want to easily use fuzzy search with edismax, check out the patch submitted with SOLR-629. wunder Walter Underwood wun...@wunderwood.org http://observer.

Re: Suggester and fuzzy/infix suggestions

2017-06-28 Thread Student 1
I thought about that - but that does not solve the issue. If the user types in a misspelled word, and that word is somewhere in the middle of the field, that result will not be returned. 2017-06-28 19:00 GMT+02:00 Walter Underwood : > I set up two suggesters, one fuzzy and one analyzing infix. Th

Re: Spatial Search based on the amount of docs, not the distance

2017-06-28 Thread David Smiley
Deniz didn't mention document-to-document distance sort but he/she didn't say it wasn't that case either. Any way, FYI at the Lucene level with LatLonPoint there is some sophisticated BKD search code to efficiently return the top N distance ordered documents (where you supply N). Although as f

SOLR 6.6 Restrict access to specific collections

2017-06-28 Thread Cody Rathgeber
Hello, I’m trying to create custom rules to work with the Solr Rule Based Authorization Plugin. https://lucene.apache.org/solr/guide/6_6/rule-based-authorization-plugin.html . I have a basic security.json uploade

Re: combined boolean operators

2017-06-28 Thread Erick Erickson
Well, the query parsers never promised to implement strict boolean algebra. You can emulate it with careful use of parentheses. See: https://lucidworks.com/2011/12/28/why-not-and-or-and-not/ Best, Erick On Wed, Jun 28, 2017 at 9:30 AM, Marco Staub wrote: > Hi there, > > I am a litte confused ab

Re: Suggester and fuzzy/infix suggestions

2017-06-28 Thread Walter Underwood
I set up two suggesters, one fuzzy and one analyzing infix. That gives two sets of suggestions, so the client code has to merge them into one list and toss duplicates. They use the same weights, so I can keep the top weighted suggestions. wunder Walter Underwood wun...@wunderwood.org http://obs

Suggester and fuzzy/infix suggestions

2017-06-28 Thread Student 1
Hi, I'm trying to implement suggestions mechanism using Solr Suggester component, that would work like this: - look inside of the field (like AnalyzingInfixLookupFactory does) AND - allow for minor spelling mistakes (like FuzzyLookupFactory does). Is it at all possible? It looks to me, like you

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I did the following changes: Changed in schema.xml: Added in solrconfig.xml: My fields in the core as defined in the schema is: However, I still face the same issue. No results found for a multipolygon

combined boolean operators

2017-06-28 Thread Marco Staub
Hi there, I am a litte confused about combined boolean operators in the query parser. For example If I search for myfield:a AND myfield:b OR myfield:c This will be parsed internal to the query +myfield:a +myfield:b myfield:c But if I change the default operator to AND (q.op=AND) I got for the

Re: Apache 4.9.1 - trouble trying to use complex phrase query parser.

2017-06-28 Thread Stefan Matheis
If you'd include the actual error message you get .. it might easier to try and help? -Stefan On Jun 28, 2017 6:24 PM, "Michael Craven" wrote: > Hi - > > I am trying to use the complex phrase query parser on my Drupal > installation. Our core is sore 4.9.1, so I thought it should be no problem.

Apache 4.9.1 - trouble trying to use complex phrase query parser.

2017-06-28 Thread Michael Craven
Hi - I am trying to use the complex phrase query parser on my Drupal installation. Our core is sore 4.9.1, so I thought it should be no problem. Search works fine when I use a local parameter to do a search of type lucene, dismax, or edismax, (a la {!lucene} etc.), but when I try to do a searc

RE: Solr 5.5 - spatial intersects query returns results outside of search box

2017-06-28 Thread Leila Gonzales
Will do. Thanks for the tip! -Original Message- From: David Smiley [mailto:david.w.smi...@gmail.com] Sent: Wednesday, June 28, 2017 8:38 AM To: solr-user@lucene.apache.org Subject: Re: Solr 5.5 - spatial intersects query returns results outside of search box No prob. BTW you may want to

Re: master slave replication taking time

2017-06-28 Thread Erick Erickson
How long it takes to copy the entire index from one machine to another over your network. Solr can't go any faster than your network can support. Consider SolrCloud if you need something closer to NRT. Best, Erick On Tue, Jun 27, 2017 at 11:31 PM, Midas A wrote: > Hi, > > we have around 2000

Re: Using asterik(*) with unicode characters.

2017-06-28 Thread Erick Erickson
There's a long blog on wildcards here: https://lucidworks.com/2011/11/29/whats-with-lowercasing-wildcard-multiterm-queries-in-solr/ The gist is that when you are analyzing a token, if the analysis chain splits a token into more than one part then wildcards are impossible to get right. So any "Mult

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
https://lucene.apache.org/solr/guide/6_6/spatial-search.html#SpatialSearch-RptWithGeometrySpatialField > On Jun 28, 2017, at 11:32 AM, puneeta wrote: > > Hi David, > I am sorry ,I did not

Re: Solr 5.5 - spatial intersects query returns results outside of search box

2017-06-28 Thread David Smiley
No prob. BTW you may want to investigate use of BBoxField or RptWithGeometrySpatialField; both are also more accurate... but vanilla RPT may be just fine (fastest). > On Jun 28, 2017, at 11:32 AM, Leila Gonzales wrote: > > Thanks David! I fixed the coordinates and put some error checking in

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, I am sorry ,I did not understand what do you mean by "I suggest using RptWithGeometry field". Should leave the existing location_rpt definition in schema.xml? This line I have commented. Should I uncomment it? 1."remove distErrPct and maxDistErr" - 2.Added usejtsMulti="false" I will

RE: Solr 5.5 - spatial intersects query returns results outside of search box

2017-06-28 Thread Leila Gonzales
Thanks David! I fixed the coordinates and put some error checking in my Solr indexing script to trap for this type of coordinate mismatch. -Original Message- From: David Smiley [mailto:david.w.smi...@gmail.com] Sent: Wednesday, June 28, 2017 8:21 AM To: solr-user@lucene.apache.org Subject:

Re: Solr 5.5 - spatial intersects query returns results outside of search box

2017-06-28 Thread David Smiley
> On Jun 27, 2017, at 3:28 AM, Leila Gonzales wrote: > > { > >"id": "5230", > >"location_geo": > ["ENVELOPE(-75.0,-75.939723,39.3597224,38.289722)"] > > } This is an unusual rectangle. Remember this is minX, maxX, maxY, minY. Thus this rectangl

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
I suggest using RptWithGeometry field, and with that change remove distErrPct and maxDistErr. See the ref guide, and note the geometry cache option. BTW spatialContextFactory can simply be "jts". If this fixes the issue, then the issue was related to grid approximation. BTW you never quite said

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi David, Thank you for the prompt reply. My field definition in schema.xml is : I commented the existing location_rpt And added: My Solr version is 6.2.1 Thanks, Puneeta -- View this message in context: http://lucene.472066.n3.nabble.com/Polygon-search-query-working-but-NOT-Multipolyg

Boost(bq) with Block Join Query Praser

2017-06-28 Thread Ratna
Hi all, We are having Nested Documents. We want similar kind of function like 'bq'(Edismax) with Block Join Query parser. Can you please provide some inputs to achieve boost within result set based on some attribute in Solr. -- View this message in context: http://lucene.472066.n3.nabble.c

Using asterik(*) with unicode characters.

2017-06-28 Thread Preeti Bhat
Hi All, I have a requirement where the user can give an Unicode or ascii character as input but expects same result. For example: MöllerGruppen AS vs MollerGruppen AS should give out same result. I am able to get this done using , but due to some reason when it try to do MöllerGruppen* I am ge

Re: Polygon search query working but NOT Multipolygon

2017-06-28 Thread David Smiley
Hi Puneeta, So what does your field type definition look like? I'd imagine you're using RptWithGeometrySpatialField. And what is your Solr version? BTW note the settings here https://locationtech.github.io/spatial4j/apidocs/org/locationtech/spatial4j/context/jts/JtsSpatialContextFactory.html

Polygon search query working but NOT Multipolygon

2017-06-28 Thread puneeta
Hi, I am new to Solr Geospatial data and have set up JTS within solr. I have geo spatial data with Multipolygons. I am passing the coordinates and trying to find out which multipolygon contains those coordinates.However, The search query is working fine if I insert the data as a polygon. The same

Re: Dynamic fields vs parent child

2017-06-28 Thread Rick Leir
Saurabh Maybe you need two fields. The first field is named "keyName" and the second is "keyValue". Give that a try, though searching with AND may be a challenge. Otherwise, use one field named "whatever" containing "key-value", assuming '-' never appears in keys or values. Search for an exa