RE: Synonyms in query time, configured as managed resouces

2016-12-26 Thread Daniel Moura
(now in the correct thread... sorry)

Hi Eric,

My use case is quite simple. I was using the following configuration:



 
 
 
 



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


But once my client is asking to add some synonyms, I changed to managed 
resources. And now, I just want to have sure if the following configuration is 
correct:


   
 
 
 
 
 
   
   
 
  

 
 
 
 
 
   


What do you think? In terms of configuration, this is well defined?
I tested it without errors.
But... How can I know (or have sure) that my managed synonyms are being used in 
query time? How to test it? How to validate it?

Regards,
Daniel Moura

-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: 26 de dezembro de 2016 16:01
To: solr-user 
Subject: Re: Synonyms in query time, configured as managed resouces

What happens when you test it? Are you getting some kind of error?

Best,
Erick



On Mon, Dec 26, 2016 at 7:19 AM, Daniel Moura  wrote:
> Hi all!
>
> I will need your help guys.
>
> We now need to know if the following definition is correct to have synonyms 
> in query time and configured as managed resources, for the watson_text type 
> that is the type used to indexed fields.
>
>  class="com.ibm.watson.hector.plugins.fieldtype.WatsonTextField" 
> omitNorms="false" omitTermFreqAndPositions="false" indexed="true" 
> termOffsets="true" stored="true" termPositions="true" 
> termVectors="true">   class="solr.StandardTokenizerFactory"/>
> 
> 
>  protected="lang/protwords_en.txt"/>
> 
> 
> 
> 
>  
>  ignoreCase="true"/> 
> 
>  protected="lang/protwords_en.txt"/>
> 
> 
> 
>
>
>
> Thank you, I'll wait your answer asap.
>
> Cheers,
>
> DM
>


RE: matching string to multivalued field

2016-12-26 Thread Daniel Moura
Hi Eric,



My use case is quite simple. I was using the following configuration:







 

 

 

 







 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 





But once my client is asking to add some synonyms, I changed to managed 
resources. And now, I just want to have sure if the following configuration is 
correct:





   

 

 

 

 

 

   

   

 

  


 

 

 

 

 

   





What do you think? In terms of configuration, this is well defined?

I tested it without errors.

But... How can I know (or have sure) that my managed synonyms are being used in 
query time? How to test it? How to validate it?



Regards,

Daniel Moura



-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: 26 de dezembro de 2016 16:10
To: solr-user 
Subject: Re: matching string to multivalued field



Why are you trying to do this? I'm wondering if this is an XY problem.



For instance, you could use a multivalued field of _text_ type with a 
positinIncrementGap of 100. Now you simply search (don't need function queries) 
for "Deli NCR"~90 and you wouldn't match across multiple entries. There are 
other tricks on this technique if, for instance, you didn't want to match "Deli 
NCR India"



So if all you're doing it matching this is a much more robust solution.



But without some statement of the problem you're trying to solve, i.e. the 
use-case, it's hard to suggest alternatives.



Otherwise you're stuck with custom code I'm afraid.



Best,

Erick



On Sun, Dec 25, 2016 at 11:36 AM, himanshu pal 
mailto:hp.ii...@gmail.com>> wrote:

> Greetings all,

>

> I am trying to match a user input string with a multivalued field in solr.

> For non multivalued fields I was using following function query

>

> strdist(def(state_exact,""),"Delhi NCR",edit)

>

> Using the same for multivalued fields throws following error "can not

> use FieldCache on multivalued field"

>

> I googled it and found that some suggestions to make the field

> multivalued=false so I combined all values to comma separated single

> field but then the problem I faced was there is no ISSUBSTR builtin

> function in solr.

>

> Is there any other way of solving this problem besides writing a

> Custom ISSUBSTR function in solr.

>

>

> Thanks,

> Himanshu


Synonyms in query time, configured as managed resouces

2016-12-26 Thread Daniel Moura
Hi all!

I will need your help guys.

We now need to know if the following definition is correct to have synonyms in 
query time and configured as managed resources, for the watson_text type that 
is the type used to indexed fields.






















Thank you, I'll wait your answer asap.

Cheers,

DM