Re: strdist on nested doc field

2018-01-16 Thread Dariusz Wojtas
Please see the answers below.

On Tue, Jan 16, 2018 at 8:40 AM, Mikhail Khludnev  wrote:

> On Tue, Jan 16, 2018 at 10:30 AM, Dariusz Wojtas 
> wrote:
>
> > Hello Mikhail,
> >
> > I've tried it and the query executes, but it does not treat strdist() as
> a
> > function to execute.
> > Looks like each part of the function - it's name and parameters - are
> > treated as keywords to search for against the default field.
> >
> Can you post the exact observations, rather than interpretation?
>

Yes,
Here is the output of the original query proposed, where I believe strdist
call is not treated as a function. keyword1 if the default search field:


firstName:Adam AllParentsAware(ToParentBlockJoinQuery (type:address
keyword1:strdic (keyword1:shakespear keyword1:address.streeo
keyword1:edit)))

This is not a function interpretation call.


> If I try something different:
> >
> >q=+firstName:Adam +{!parent which=type:record
> v=$chq}&chq=+type:address
> > +{!func}strdist('Shakespeare',address.street, edit)
> >
> > then I get exception:
> >   org.apache.solr.search.SyntaxError: Missing end to unquoted value
> > starting at 37 str='strdist('Shakespeare',address.street,'
> >
> This particular query failed because of the space. Here is my pet peeve in
> Solr: the syntax {!foo} captures whole string if it's in beginning of the
> string, but in the middle of the string it captures only substring until
> the first space.
> So, after removing space it should work fine. Another potential issues are:
> single quotes (do they it ever supported?), and the dot in the fieldname
> (you never know).



Yes, it's been about the space first, then about the dot in the name of the
nested field 'address.street'.
After many failed attempts with various escaping modes, I have executed it
with double parameter dereferencing, but have faced another issue:

q=+firstName:Adam + {!parent which='type:record' score='max' v=$chq1}
chq1=+type:address +{!func v='$chq2'}
chq2=strdist('Shakespeare',address.street,edit)

java.lang.IllegalStateException: Child query must not match same docs with
parent filter. Combine them as must clauses (+) to find a problem doc.
docId=5, class org.apache.lucene.search.DisjunctionSumScorer at
org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.setScoreAndFreq(ToParentBlockJoinQuery.java:327)
at
org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.score(ToParentBlockJoinQuery.java:286)
at
org.apache.lucene.search.BooleanScorer$OrCollector.collect(BooleanScorer.java:142)
at
org.apache.lucene.search.Weight$DefaultBulkScorer.scoreRange(Weight.java:208)
at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:195)
at
org.apache.lucene.search.BooleanScorer$BulkScorerAndDoc.score(BooleanScorer.java:61)
at
org.apache.lucene.search.BooleanScorer.scoreWindowIntoBitSetAndReplay(BooleanScorer.java:213)
at
org.apache.lucene.search.BooleanScorer.scoreWindowMultipleScorers(BooleanScorer.java:260)
at
org.apache.lucene.search.BooleanScorer.scoreWindow(BooleanScorer.java:305)
at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:317) at
org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39) at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:658) at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462) at
org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:215)
at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1591)
at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1408)
at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:575)
at


Any hint now?
Mo goal is to return the result of the strdist() function on a nested
document field.

Best regards,
Dariusz Wojtas


>
> > Best regards,
> > Dariusz Wojtas
> >
> >
> >
> >
> > On Tue, Jan 16, 2018 at 4:04 AM, Mikhail Khludnev 
> wrote:
> >
> > > Hello, Dariusz.
> > >
> > > It should be something like
> > > q=+firstName:Adam +{!parent which=type:record
> > > v=$chq}&chq=+type:address +strdist('Shakespeare',
> > > address.street, edit)
> > > post exception if it doesn't work.
> > >
> > > On Tue, Jan 16, 2018 at 1:39 AM, Dariusz Wojtas 
> > wrote:
> > >
> > > > Hi,
> > > >
> > > > Is it possible to use the strdist() function to return distance on
> the
> > > > child document field?
> > > > Let's say I have:
> > > >
> > > > 
> > > >1
> > > >record
> > > > Adam
> > > > 
> > > >   A1
> > > >   address
> > > >   business
> > > >   Shakespeare
> > > > 
> > > > 
> > > >   A2
> > > >   address
> > > >   correspondence
> > > >   Baker Street
> > > > 
> > > > 
> > > >
> > > > What I want to do is to search for documents:
> > > >   type:record
> > > >   firstName:Adam
> > > >   and return max strdist('Shakespeare', address.street, edit) as the
> > > > resulting score?
> > > >
> > > > or
> > > >   type:record
> > > >   firstName:Adam
> > > >   and r

Re: strdist on nested doc field

2018-01-16 Thread Mikhail Khludnev
I notice the space after the 2nd +. It's not a really big issue, but it
should be recognized as a syntax error (I believe), it might mean that your
http layer may grab pluses and turn them into spaces, try to replace them
to %2b.
Regarding the exception, this is what I tried to protect from with the
sibling +type:address, and you can literally follow the advice from
exception message, however it just proves hypothesis above.

On Tue, Jan 16, 2018 at 12:11 PM, Dariusz Wojtas  wrote:

> Please see the answers below.
>
> On Tue, Jan 16, 2018 at 8:40 AM, Mikhail Khludnev  wrote:
>
> > On Tue, Jan 16, 2018 at 10:30 AM, Dariusz Wojtas 
> > wrote:
> >
> > > Hello Mikhail,
> > >
> > > I've tried it and the query executes, but it does not treat strdist()
> as
> > a
> > > function to execute.
> > > Looks like each part of the function - it's name and parameters - are
> > > treated as keywords to search for against the default field.
> > >
> > Can you post the exact observations, rather than interpretation?
> >
>
> Yes,
> Here is the output of the original query proposed, where I believe strdist
> call is not treated as a function. keyword1 if the default search field:
>
> 
> firstName:Adam AllParentsAware(ToParentBlockJoinQuery (type:address
> keyword1:strdic (keyword1:shakespear keyword1:address.streeo
> keyword1:edit)))
> 
> This is not a function interpretation call.
>
>
> > If I try something different:
> > >
> > >q=+firstName:Adam +{!parent which=type:record
> > v=$chq}&chq=+type:address
> > > +{!func}strdist('Shakespeare',address.street, edit)
> > >
> > > then I get exception:
> > >   org.apache.solr.search.SyntaxError: Missing end to unquoted value
> > > starting at 37 str='strdist('Shakespeare',address.street,'
> > >
> > This particular query failed because of the space. Here is my pet peeve
> in
> > Solr: the syntax {!foo} captures whole string if it's in beginning of the
> > string, but in the middle of the string it captures only substring until
> > the first space.
> > So, after removing space it should work fine. Another potential issues
> are:
> > single quotes (do they it ever supported?), and the dot in the fieldname
> > (you never know).
>
>
>
> Yes, it's been about the space first, then about the dot in the name of the
> nested field 'address.street'.
> After many failed attempts with various escaping modes, I have executed it
> with double parameter dereferencing, but have faced another issue:
>
> q=+firstName:Adam + {!parent which='type:record' score='max' v=$chq1}
> chq1=+type:address +{!func v='$chq2'}
> chq2=strdist('Shakespeare',address.street,edit)
>
> java.lang.IllegalStateException: Child query must not match same docs with
> parent filter. Combine them as must clauses (+) to find a problem doc.
> docId=5, class org.apache.lucene.search.DisjunctionSumScorer at
> org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.
> setScoreAndFreq(ToParentBlockJoinQuery.java:327)
> at
> org.apache.lucene.search.join.ToParentBlockJoinQuery$
> BlockJoinScorer.score(ToParentBlockJoinQuery.java:286)
> at
> org.apache.lucene.search.BooleanScorer$OrCollector.
> collect(BooleanScorer.java:142)
> at
> org.apache.lucene.search.Weight$DefaultBulkScorer.
> scoreRange(Weight.java:208)
> at org.apache.lucene.search.Weight$DefaultBulkScorer.
> score(Weight.java:195)
> at
> org.apache.lucene.search.BooleanScorer$BulkScorerAndDoc.score(
> BooleanScorer.java:61)
> at
> org.apache.lucene.search.BooleanScorer.scoreWindowIntoBitSetAndReplay
> (BooleanScorer.java:213)
> at
> org.apache.lucene.search.BooleanScorer.scoreWindowMultipleScorers(
> BooleanScorer.java:260)
> at
> org.apache.lucene.search.BooleanScorer.scoreWindow(BooleanScorer.java:305)
> at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:317) at
> org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39) at
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:658) at
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462) at
> org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(
> SolrIndexSearcher.java:215)
> at
> org.apache.solr.search.SolrIndexSearcher.getDocListNC(
> SolrIndexSearcher.java:1591)
> at
> org.apache.solr.search.SolrIndexSearcher.getDocListC(
> SolrIndexSearcher.java:1408)
> at
> org.apache.solr.search.SolrIndexSearcher.search(
> SolrIndexSearcher.java:575)
> at
>
>
> Any hint now?
> Mo goal is to return the result of the strdist() function on a nested
> document field.
>
> Best regards,
> Dariusz Wojtas
>
>
> >
> > > Best regards,
> > > Dariusz Wojtas
> > >
> > >
> > >
> > >
> > > On Tue, Jan 16, 2018 at 4:04 AM, Mikhail Khludnev 
> > wrote:
> > >
> > > > Hello, Dariusz.
> > > >
> > > > It should be something like
> > > > q=+firstName:Adam +{!parent which=type:record
> > > > v=$chq}&chq=+type:address +strdist('Shakespeare',
> > > > address.street, edit)
> > > > post exception if it doesn't work.
> > > >
> > > > On Tue, Jan 16, 2018 at 1:39 AM, Dariusz Wojtas 
> >

modify number of Shard

2018-01-16 Thread Sushil K Tripathi
Team,


We have a existing setup of Solr Cluster and we need to modify the current 
number of Shard from 4 to 6. Can somebody confirm if it is possible to modify 
the number of Shard or i just need to recreate the whole collection.


With Warm Regards...
Sushil K. Tripathi


Re: modify number of Shard

2018-01-16 Thread Erick Erickson
If you're using the default compositeId routing then this will not be
possible. You can increase to any multiple of 4 using SPLITSHARD, but
you can't just add an arbitrary number of shards.

If you're using the implicit router then you can add as many shards as you want.

Best,
Erick

On Tue, Jan 16, 2018 at 7:38 AM, Sushil K Tripathi
 wrote:
> Team,
>
>
> We have a existing setup of Solr Cluster and we need to modify the current 
> number of Shard from 4 to 6. Can somebody confirm if it is possible to modify 
> the number of Shard or i just need to recreate the whole collection.
>
>
> With Warm Regards...
> Sushil K. Tripathi


Re: strdist on nested doc field

2018-01-16 Thread Erick Erickson
Also note that Solr field names really shouldn't contain the period.

>From the ref guide:

"Field names should consist of alphanumeric or
underscore characters only and not start with a digit..."

names with dots won't be rejected, but aren't guaranteed to
be supported in all situations either.

Best,
Erick

On Tue, Jan 16, 2018 at 3:21 AM, Mikhail Khludnev  wrote:
> I notice the space after the 2nd +. It's not a really big issue, but it
> should be recognized as a syntax error (I believe), it might mean that your
> http layer may grab pluses and turn them into spaces, try to replace them
> to %2b.
> Regarding the exception, this is what I tried to protect from with the
> sibling +type:address, and you can literally follow the advice from
> exception message, however it just proves hypothesis above.
>
> On Tue, Jan 16, 2018 at 12:11 PM, Dariusz Wojtas  wrote:
>
>> Please see the answers below.
>>
>> On Tue, Jan 16, 2018 at 8:40 AM, Mikhail Khludnev  wrote:
>>
>> > On Tue, Jan 16, 2018 at 10:30 AM, Dariusz Wojtas 
>> > wrote:
>> >
>> > > Hello Mikhail,
>> > >
>> > > I've tried it and the query executes, but it does not treat strdist()
>> as
>> > a
>> > > function to execute.
>> > > Looks like each part of the function - it's name and parameters - are
>> > > treated as keywords to search for against the default field.
>> > >
>> > Can you post the exact observations, rather than interpretation?
>> >
>>
>> Yes,
>> Here is the output of the original query proposed, where I believe strdist
>> call is not treated as a function. keyword1 if the default search field:
>>
>> 
>> firstName:Adam AllParentsAware(ToParentBlockJoinQuery (type:address
>> keyword1:strdic (keyword1:shakespear keyword1:address.streeo
>> keyword1:edit)))
>> 
>> This is not a function interpretation call.
>>
>>
>> > If I try something different:
>> > >
>> > >q=+firstName:Adam +{!parent which=type:record
>> > v=$chq}&chq=+type:address
>> > > +{!func}strdist('Shakespeare',address.street, edit)
>> > >
>> > > then I get exception:
>> > >   org.apache.solr.search.SyntaxError: Missing end to unquoted value
>> > > starting at 37 str='strdist('Shakespeare',address.street,'
>> > >
>> > This particular query failed because of the space. Here is my pet peeve
>> in
>> > Solr: the syntax {!foo} captures whole string if it's in beginning of the
>> > string, but in the middle of the string it captures only substring until
>> > the first space.
>> > So, after removing space it should work fine. Another potential issues
>> are:
>> > single quotes (do they it ever supported?), and the dot in the fieldname
>> > (you never know).
>>
>>
>>
>> Yes, it's been about the space first, then about the dot in the name of the
>> nested field 'address.street'.
>> After many failed attempts with various escaping modes, I have executed it
>> with double parameter dereferencing, but have faced another issue:
>>
>> q=+firstName:Adam + {!parent which='type:record' score='max' v=$chq1}
>> chq1=+type:address +{!func v='$chq2'}
>> chq2=strdist('Shakespeare',address.street,edit)
>>
>> java.lang.IllegalStateException: Child query must not match same docs with
>> parent filter. Combine them as must clauses (+) to find a problem doc.
>> docId=5, class org.apache.lucene.search.DisjunctionSumScorer at
>> org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.
>> setScoreAndFreq(ToParentBlockJoinQuery.java:327)
>> at
>> org.apache.lucene.search.join.ToParentBlockJoinQuery$
>> BlockJoinScorer.score(ToParentBlockJoinQuery.java:286)
>> at
>> org.apache.lucene.search.BooleanScorer$OrCollector.
>> collect(BooleanScorer.java:142)
>> at
>> org.apache.lucene.search.Weight$DefaultBulkScorer.
>> scoreRange(Weight.java:208)
>> at org.apache.lucene.search.Weight$DefaultBulkScorer.
>> score(Weight.java:195)
>> at
>> org.apache.lucene.search.BooleanScorer$BulkScorerAndDoc.score(
>> BooleanScorer.java:61)
>> at
>> org.apache.lucene.search.BooleanScorer.scoreWindowIntoBitSetAndReplay
>> (BooleanScorer.java:213)
>> at
>> org.apache.lucene.search.BooleanScorer.scoreWindowMultipleScorers(
>> BooleanScorer.java:260)
>> at
>> org.apache.lucene.search.BooleanScorer.scoreWindow(BooleanScorer.java:305)
>> at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:317) at
>> org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39) at
>> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:658) at
>> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462) at
>> org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(
>> SolrIndexSearcher.java:215)
>> at
>> org.apache.solr.search.SolrIndexSearcher.getDocListNC(
>> SolrIndexSearcher.java:1591)
>> at
>> org.apache.solr.search.SolrIndexSearcher.getDocListC(
>> SolrIndexSearcher.java:1408)
>> at
>> org.apache.solr.search.SolrIndexSearcher.search(
>> SolrIndexSearcher.java:575)
>> at
>>
>>
>> Any hint now?
>> Mo goal is to return the result of the strdist() function on a nested
>> document field.
>>
>> 

Re: Got unexpected results.

2018-01-16 Thread Erick Erickson
Screen shots are generally stripped by the mail server, you'll have to
try something different.

Best,
Erick

On Mon, Jan 15, 2018 at 8:49 PM, Sanjeet Kumar
 wrote:
> Thanks, Erick! Please find the attached screenshot of this debug query
> (title:("to order this report"~0)).
>
> On Mon, Jan 15, 2018 at 10:21 PM, Erick Erickson 
> wrote:
>>
>> What do you see when you add &debug=query?
>>
>> Best,
>> Erick
>>
>> On Mon, Jan 15, 2018 at 1:23 AM, Peter Lancaster
>>  wrote:
>> > Shouldn't the query just be something like title: "to order this report"
>> > and then it will work.
>> >
>> >
>> > -Original Message-
>> > From: Sanjeet Kumar [mailto:sanjeetkumar...@gmail.com]
>> > Sent: 15 January 2018 06:20
>> > To: solr-user@lucene.apache.org
>> > Subject: Got unexpected results.
>> >
>> > Hi,
>> >
>> > I am using Solr-6.4.2, did a query (*title*:("to order this
>> > report"~*0*)) on "*text_en*" field and matched ("title":"Forrester Research
>> > cites SAP Hybris as a leader in B2B Order Management report").
>> >
>> > As per my understanding, this could not match as there is a word
>> > "Management"
>> > between "Order' and "report". Can somebody explain this?.
>> >
>> > Thanks.
>> > 
>> >
>> > This message is confidential and may contain privileged information. You
>> > should not disclose its contents to any other person. If you are not the
>> > intended recipient, please notify the sender named above immediately. It is
>> > expressly declared that this e-mail does not constitute nor form part of a
>> > contract or unilateral obligation. Opinions, conclusions and other
>> > information in this message that do not relate to the official business of
>> > findmypast shall be understood as neither given nor endorsed by it.
>> > 
>> >
>> >
>> > __
>> >
>> > This email has been checked for virus and other malicious content prior
>> > to leaving our network.
>> >
>> > __
>
>


Synonyms with levenshtein distance

2018-01-16 Thread LK
Hi i am working on nickname mapping thru SynonymFilterFactory. For example,

if i search for john, i will get john, jonny, jon, jack, jackie, jacky and
johnny from the SynonymFilterFactory and i will like to apply fuzzy
search/levenshtein distance on the return nicknames such as jonny~, jon~,
jack~, jackie~ and johnny~,it is possible?

 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Need help with solr highlighting feature

2018-01-16 Thread Aashish Agarwal
Hello,

I am using solr highlighting feature on multivalued field containing korean
words.The feature is not working as expected. Search is working fine but in
case of highlighting it gives response as .

I am storing term vector for the field and it is also stored=true.

Please reply soon. Need this feature working urgently.

Thanks,
Aashish


Re: cursorMark and Solrcloud

2018-01-16 Thread Webster Homer
sorry solr_returned is the total count of the documents retrieved from the
queryResponse. So if I ask for 200 rows at at time it will be the increment
of all the 200

numberRetrieved += queryResponse.getResults().size();

Where queryResponse is a solrj QueryResponse

On Mon, Jan 15, 2018 at 6:11 PM, Shawn Heisey  wrote:

> On 1/15/2018 12:52 PM, Webster Homer wrote:
>
>> When I don't have score in the sort, the solr_returned and count are the
>> same
>>
>
> I don't know what "solr_returned" means.  I haven't encountered that
> before, and nothing useful turns up in a google search.
>
> If you're getting different numFound values for the same query and the
> index hasn't changed, there are two possible causes that I know of.  One is
> replicas out of sync as already described, the other is having documents
> with the same uniqueKey value in more than one shard.  If the count is
> always the same with one sort, then I am leaning towards the latter cause.
>
> Which router does your collection use?  If it's implicit, how are you
> deciding which shard gets which document?  If it's compositeId, have you
> changed your hash ranges without deleting everything and building the index
> again?
>
> Thanks,
> Shawn
>
>

-- 


This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. If you are not the intended recipient, 
you must not copy this message or attachment or disclose the contents to 
any other person. If you have received this transmission in error, please 
notify the sender immediately and delete the message and any attachment 
from your system. Merck KGaA, Darmstadt, Germany and any of its 
subsidiaries do not accept liability for any omissions or errors in this 
message which may arise as a result of E-Mail-transmission or for damages 
resulting from any unauthorized changes of the content of this message and 
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its 
subsidiaries do not guarantee that this message is free of viruses and does 
not accept liability for any damages caused by any virus transmitted 
therewith.

Click http://www.emdgroup.com/disclaimer to access the German, French, 
Spanish and Portuguese versions of this disclaimer.


Re: cursorMark and Solrcloud

2018-01-16 Thread Webster Homer
count is queryResponse.getResults().getNumFound()

The code stops when the cursorMark is equal to the nextCursorMark so how
can it exceed the numFound?
setting the sort order to just the unique id and the code works.

I would try to create an example case, but I'm under a deadline and have to
get this working and I found that using the normal start/rows iteration
seems to work. if less efficiently

On Tue, Jan 16, 2018 at 4:15 PM, Webster Homer 
wrote:

> sorry solr_returned is the total count of the documents retrieved from the
> queryResponse. So if I ask for 200 rows at at time it will be the increment
> of all the 200
>
> numberRetrieved += queryResponse.getResults().size();
>
> Where queryResponse is a solrj QueryResponse
>
> On Mon, Jan 15, 2018 at 6:11 PM, Shawn Heisey  wrote:
>
>> On 1/15/2018 12:52 PM, Webster Homer wrote:
>>
>>> When I don't have score in the sort, the solr_returned and count are the
>>> same
>>>
>>
>> I don't know what "solr_returned" means.  I haven't encountered that
>> before, and nothing useful turns up in a google search.
>>
>> If you're getting different numFound values for the same query and the
>> index hasn't changed, there are two possible causes that I know of.  One is
>> replicas out of sync as already described, the other is having documents
>> with the same uniqueKey value in more than one shard.  If the count is
>> always the same with one sort, then I am leaning towards the latter cause.
>>
>> Which router does your collection use?  If it's implicit, how are you
>> deciding which shard gets which document?  If it's compositeId, have you
>> changed your hash ranges without deleting everything and building the index
>> again?
>>
>> Thanks,
>> Shawn
>>
>>
>

-- 


This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. If you are not the intended recipient, 
you must not copy this message or attachment or disclose the contents to 
any other person. If you have received this transmission in error, please 
notify the sender immediately and delete the message and any attachment 
from your system. Merck KGaA, Darmstadt, Germany and any of its 
subsidiaries do not accept liability for any omissions or errors in this 
message which may arise as a result of E-Mail-transmission or for damages 
resulting from any unauthorized changes of the content of this message and 
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its 
subsidiaries do not guarantee that this message is free of viruses and does 
not accept liability for any damages caused by any virus transmitted 
therewith.

Click http://www.emdgroup.com/disclaimer to access the German, French, 
Spanish and Portuguese versions of this disclaimer.


Solr 7 spatial search and WKT

2018-01-16 Thread Leila Deljkovic
Hi all,

I need to index multiple POLYGONS/MULTIPOLYGONS per document; I’m trying to use 
multiValued RptWithGeometrySpatialField and I’m getting this error:

Exception writing document id leila_test to the index; possible analysis error: 
DocValuesField "gridcell_rpt" appears more than once in this document (only one 
value is allowed per field)

This is what I’m indexing:
{
"id": "leila_test",
"gridcell_rpt": ["POLYGON((30 10, 10 20, 20 40, 40 40, 30 10))”, 
"MULTIPOLYGON(((30 20, 45 40, 10 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 
5)))"]
}

This is what’s in my schema.xml:

…

Re: How to implement the function of W/N in Solr?

2018-01-16 Thread Rick Leir
Xi
Might this be something you can solve with pf or pf2? Google solr pf will find 
this for you. Adjust the slop to allow for terms which are not immediately 
adjacent.
Rick

On January 15, 2018 3:04:40 AM EST, "xizhen.w...@incoshare.com" 
 wrote:
>Hello,
>
>I'm using Solr 4.10.3, and I want "A" and "B" are together, "C" and "D"
>are together, and the terms "B" and "C" are no more than 3 terms away
>from each other, by using {!surround} 3w("A B", "C D"), but it doesn't
>work.  Is there any other useful way?
>
>Any help is appreciated.
>
>
>
>xizhen.w...@incoshare.com

-- 
Sorry for being brief. Alternate email is rickleir at yahoo dot com 

Block join query with solr 4.6.0

2018-01-16 Thread Aashish Agarwal
Hi,

I am using block join query to get parent object using filter on child. But
when the number of results are large than the query fails with
ArrayIndexOutOfBoundException. e.g in range query price:[0 TO 20] fails but
price[0 TO 10], price:[10 TO 20] works fine. I am using solr 4.6.0.

Thanks,
Aashish