Re: Synonym not working in 4.10 / CDH 5.14
Thanks for your help. Abhi On Thu, Mar 1, 2018 at 2:06 PM, Steve Rowewrote: > Yes, either type “text_general” or some other TextField-based field type > that includes a synonym filter. > > -- > Steve > www.lucidworks.com > > > On Mar 1, 2018, at 3:02 PM, Abhi Basu <9000r...@gmail.com> wrote: > > > > Yes, agreed. Just tested and it works. :) > > > > I will have a lot more fields, so every field I need a synonym feature > for > > will have to be type "text_general", right? > > > > On Thu, Mar 1, 2018 at 1:57 PM, Steve Rowe wrote: > > > >> I think you want type=“text_general” > >> > >> -- > >> Steve > >> www.lucidworks.com > >> > >>> On Mar 1, 2018, at 2:19 PM, Abhi Basu <9000r...@gmail.com> wrote: > >>> > >>> Should it be defined as this instead? > >>> > >>> >>> stored="true" docValues="true"/> > >>> > >>> > >>> > >>> On Thu, Mar 1, 2018 at 1:16 PM, Abhi Basu <9000r...@gmail.com> wrote: > >>> > What should PropertyAddressState type be in order to be caught into > the > text_general config below? > > I have remeoved the copyfield now. > > >> stored="true" docValues="true"/> > > > > > >> positionIncrementGap="100"> > > > >> words="stopwords.txt" /> > >> ignoreCase="true" expand="true" tokenizerFactory="solr. > >> StandardTokenizerFactory"/> > > > > > >> words="stopwords.txt" /> > >> ignoreCase="true" expand="true"/> > > > > > > > On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowe wrote: > > > Hi Abhi, > > > > PropertyAddressState is of type “string”, which has no analysis > >> applied. > > > > Since you copyfield to “text” field, which has the analysis you > expect, > > you could try querying it instead. > > > > -- > > Steve > > www.lucidworks.com > > > >> On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: > >> > >> Can someone please help me? > >> > >> Schema.xml > >> > >> >> stored="true" docValues="true"/> > >> > >> >> multiValued="true"/> > >> > >> > >> > >> > >> > >> >> positionIncrementGap="100"> > >> > >> > >> >> words="stopwords.txt" /> > >> >> ignoreCase="true" expand="true" > >> tokenizerFactory="solr.StandardTokenizerFactory"/> > >> > >> > >> > >> > >> >> words="stopwords.txt" /> > >> > >> > >> > >> > >> > >> > >> > >> > >> Synonyms.txt has been populated with State abbreviations and names. > >> > >> > >> When searching for > >> > >> PropertyAddressState:"Oregon", I do not find docs with "OR". > >> > >> > >> > >> What am I missing? > >> > >> > >> Thanks, > >> > >> Abhi > > > > > > > -- > Abhi Basu > > >>> > >>> > >>> > >>> -- > >>> Abhi Basu > >> > >> > > > > > > -- > > Abhi Basu > > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
Yes, either type “text_general” or some other TextField-based field type that includes a synonym filter. -- Steve www.lucidworks.com > On Mar 1, 2018, at 3:02 PM, Abhi Basu <9000r...@gmail.com> wrote: > > Yes, agreed. Just tested and it works. :) > > I will have a lot more fields, so every field I need a synonym feature for > will have to be type "text_general", right? > > On Thu, Mar 1, 2018 at 1:57 PM, Steve Rowewrote: > >> I think you want type=“text_general” >> >> -- >> Steve >> www.lucidworks.com >> >>> On Mar 1, 2018, at 2:19 PM, Abhi Basu <9000r...@gmail.com> wrote: >>> >>> Should it be defined as this instead? >>> >>> >> stored="true" docValues="true"/> >>> >>> >>> >>> On Thu, Mar 1, 2018 at 1:16 PM, Abhi Basu <9000r...@gmail.com> wrote: >>> What should PropertyAddressState type be in order to be caught into the text_general config below? I have remeoved the copyfield now. > stored="true" docValues="true"/> > positionIncrementGap="100"> > words="stopwords.txt" /> > ignoreCase="true" expand="true" tokenizerFactory="solr. >> StandardTokenizerFactory"/> > words="stopwords.txt" /> > ignoreCase="true" expand="true"/> On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowe wrote: > Hi Abhi, > > PropertyAddressState is of type “string”, which has no analysis >> applied. > > Since you copyfield to “text” field, which has the analysis you expect, > you could try querying it instead. > > -- > Steve > www.lucidworks.com > >> On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: >> >> Can someone please help me? >> >> Schema.xml >> >> > stored="true" docValues="true"/> >> >> > multiValued="true"/> >> >> >> >> >> >> > positionIncrementGap="100"> >> >> >> > words="stopwords.txt" /> >> > ignoreCase="true" expand="true" >> tokenizerFactory="solr.StandardTokenizerFactory"/> >> >> >> >> >> > words="stopwords.txt" /> >> >> >> >> >> >> >> >> >> Synonyms.txt has been populated with State abbreviations and names. >> >> >> When searching for >> >> PropertyAddressState:"Oregon", I do not find docs with "OR". >> >> >> >> What am I missing? >> >> >> Thanks, >> >> Abhi > > -- Abhi Basu >>> >>> >>> >>> -- >>> Abhi Basu >> >> > > > -- > Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
Yes, agreed. Just tested and it works. :) I will have a lot more fields, so every field I need a synonym feature for will have to be type "text_general", right? On Thu, Mar 1, 2018 at 1:57 PM, Steve Rowewrote: > I think you want type=“text_general” > > -- > Steve > www.lucidworks.com > > > On Mar 1, 2018, at 2:19 PM, Abhi Basu <9000r...@gmail.com> wrote: > > > > Should it be defined as this instead? > > > > > stored="true" docValues="true"/> > > > > > > > > On Thu, Mar 1, 2018 at 1:16 PM, Abhi Basu <9000r...@gmail.com> wrote: > > > >> What should PropertyAddressState type be in order to be caught into the > >> text_general config below? > >> > >> I have remeoved the copyfield now. > >> > >> stored="true" docValues="true"/> > >> > >> > >> > >> > >> positionIncrementGap="100"> > >> > >> > >> words="stopwords.txt" /> > >> ignoreCase="true" expand="true" tokenizerFactory="solr. > StandardTokenizerFactory"/> > >> > >> > >> > >> > >> words="stopwords.txt" /> > >> ignoreCase="true" expand="true"/> > >> > >> > >> > >> > >> > >> > >> On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowe wrote: > >> > >>> Hi Abhi, > >>> > >>> PropertyAddressState is of type “string”, which has no analysis > applied. > >>> > >>> Since you copyfield to “text” field, which has the analysis you expect, > >>> you could try querying it instead. > >>> > >>> -- > >>> Steve > >>> www.lucidworks.com > >>> > On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: > > Can someone please help me? > > Schema.xml > > stored="true" docValues="true"/> > > multiValued="true"/> > > > > > > positionIncrementGap="100"> > > > words="stopwords.txt" /> > ignoreCase="true" expand="true" > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > words="stopwords.txt" /> > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > When searching for > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > What am I missing? > > > Thanks, > > Abhi > >>> > >>> > >> > >> > >> -- > >> Abhi Basu > >> > > > > > > > > -- > > Abhi Basu > > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
I think you want type=“text_general” -- Steve www.lucidworks.com > On Mar 1, 2018, at 2:19 PM, Abhi Basu <9000r...@gmail.com> wrote: > > Should it be defined as this instead? > > stored="true" docValues="true"/> > > > > On Thu, Mar 1, 2018 at 1:16 PM, Abhi Basu <9000r...@gmail.com> wrote: > >> What should PropertyAddressState type be in order to be caught into the >> text_general config below? >> >> I have remeoved the copyfield now. >> >> > stored="true" docValues="true"/> >> >> >> >> >> > positionIncrementGap="100"> >> >> >>> words="stopwords.txt" /> >>> ignoreCase="true" expand="true" >> tokenizerFactory="solr.StandardTokenizerFactory"/> >> >> >> >> >>> words="stopwords.txt" /> >>> ignoreCase="true" expand="true"/> >> >> >> >> >> >> >> On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowewrote: >> >>> Hi Abhi, >>> >>> PropertyAddressState is of type “string”, which has no analysis applied. >>> >>> Since you copyfield to “text” field, which has the analysis you expect, >>> you could try querying it instead. >>> >>> -- >>> Steve >>> www.lucidworks.com >>> On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: Can someone please help me? Schema.xml >>> stored="true" docValues="true"/> >>> multiValued="true"/> >>> positionIncrementGap="100"> >>> words="stopwords.txt" /> >>> ignoreCase="true" expand="true" tokenizerFactory="solr.StandardTokenizerFactory"/> >>> words="stopwords.txt" /> Synonyms.txt has been populated with State abbreviations and names. When searching for PropertyAddressState:"Oregon", I do not find docs with "OR". What am I missing? Thanks, Abhi >>> >>> >> >> >> -- >> Abhi Basu >> > > > > -- > Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
Should it be defined as this instead? On Thu, Mar 1, 2018 at 1:16 PM, Abhi Basu <9000r...@gmail.com> wrote: > What should PropertyAddressState type be in order to be caught into the > text_general config below? > > I have remeoved the copyfield now. > > docValues="true"/> > > > > > positionIncrementGap="100"> > > > words="stopwords.txt" /> > ignoreCase="true" expand="true" > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > words="stopwords.txt" /> > ignoreCase="true" expand="true"/> > > > > > > > On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowewrote: > >> Hi Abhi, >> >> PropertyAddressState is of type “string”, which has no analysis applied. >> >> Since you copyfield to “text” field, which has the analysis you expect, >> you could try querying it instead. >> >> -- >> Steve >> www.lucidworks.com >> >> > On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: >> > >> > Can someone please help me? >> > >> > Schema.xml >> > >> > > > stored="true" docValues="true"/> >> > >> > > > multiValued="true"/> >> > >> > >> > >> > >> > >> > > > positionIncrementGap="100"> >> > >> > >> >> > words="stopwords.txt" /> >> >> > ignoreCase="true" expand="true" >> > tokenizerFactory="solr.StandardTokenizerFactory"/> >> > >> > >> > >> > >> >> > words="stopwords.txt" /> >> > >> > >> > >> > >> > >> > >> > >> > >> > Synonyms.txt has been populated with State abbreviations and names. >> > >> > >> > When searching for >> > >> > PropertyAddressState:"Oregon", I do not find docs with "OR". >> > >> > >> > >> > What am I missing? >> > >> > >> > Thanks, >> > >> > Abhi >> >> > > > -- > Abhi Basu > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
What should PropertyAddressState type be in order to be caught into the text_general config below? I have remeoved the copyfield now. On Thu, Mar 1, 2018 at 1:12 PM, Steve Rowewrote: > Hi Abhi, > > PropertyAddressState is of type “string”, which has no analysis applied. > > Since you copyfield to “text” field, which has the analysis you expect, > you could try querying it instead. > > -- > Steve > www.lucidworks.com > > > On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: > > > > Can someone please help me? > > > > Schema.xml > > > > > stored="true" docValues="true"/> > > > > > multiValued="true"/> > > > > > > > > > > > > > positionIncrementGap="100"> > > > > > > > words="stopwords.txt" /> > > > ignoreCase="true" expand="true" > > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > > > > > > > words="stopwords.txt" /> > > > > > > > > > > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > > > > When searching for > > > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > > > > > What am I missing? > > > > > > Thanks, > > > > Abhi > > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
Hi Abhi, PropertyAddressState is of type “string”, which has no analysis applied. Since you copyfield to “text” field, which has the analysis you expect, you could try querying it instead. -- Steve www.lucidworks.com > On Mar 1, 2018, at 12:23 PM, Abhi Basu <9000r...@gmail.com> wrote: > > Can someone please help me? > > Schema.xml > > stored="true" docValues="true"/> > > multiValued="true"/> > > > > > > positionIncrementGap="100"> > > > words="stopwords.txt" /> > ignoreCase="true" expand="true" > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > words="stopwords.txt" /> > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > When searching for > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > What am I missing? > > > Thanks, > > Abhi
Re: Synonym not working in 4.10 / CDH 5.14
I am testing the index analyzer first. Do I need to turn on the query analyzer too? synonyms.txt Alabama, AL Alaska, AK Arizona, AZ Arkansas, AR California, CA Colorado, CO Connecticut, CT Delaware, DE Florida, FL Georgia, GA Hawaii, HI Idaho, ID Illinois, IL Indiana, IN Iowa, IA etc ... On Thu, Mar 1, 2018 at 12:27 PM, Alessandro Hosswrote: > How's your synonyms declared in the file? > > That xml comment () in the synonym filter section isn't there in > your running solr schema.xml, right? :) > > On Thu, Mar 1, 2018 at 2:53 PM Abhi Basu <9000r...@gmail.com> wrote: > > > Yes have tested with PA and NY, nothing works. > > > > On Thu, Mar 1, 2018 at 11:38 AM, Alessandro Hoss > > wrote: > > > > > Have you tested with another state? > > > > > > I'm asking because maybe solr is considering "OR" as a clause separator > > > instead of a search term, and in this case the problem is not with > > synonym, > > > it is with your query. > > > > > > On Thu, Mar 1, 2018 at 2:24 PM Abhi Basu <9000r...@gmail.com> wrote: > > > > > > > Can someone please help me? > > > > > > > > Schema.xml > > > > > > > > > > > stored="true" docValues="true"/> > > > > > > > > > > > multiValued="true"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > positionIncrementGap="100"> > > > > > > > > > > > > > > > words="stopwords.txt" /> > > > > synonyms="synonyms.txt" > > > > ignoreCase="true" expand="true" > > > > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > > > > > > > > > > > > > > > > > > > words="stopwords.txt" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > > > > > > > > > > When searching for > > > > > > > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > > > > > > > > > > > > > What am I missing? > > > > > > > > > > > > Thanks, > > > > > > > > Abhi > > > > > > > > > > > > > > > -- > > Abhi Basu > > > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
How's your synonyms declared in the file? That xml comment () in the synonym filter section isn't there in your running solr schema.xml, right? :) On Thu, Mar 1, 2018 at 2:53 PM Abhi Basu <9000r...@gmail.com> wrote: > Yes have tested with PA and NY, nothing works. > > On Thu, Mar 1, 2018 at 11:38 AM, Alessandro Hoss> wrote: > > > Have you tested with another state? > > > > I'm asking because maybe solr is considering "OR" as a clause separator > > instead of a search term, and in this case the problem is not with > synonym, > > it is with your query. > > > > On Thu, Mar 1, 2018 at 2:24 PM Abhi Basu <9000r...@gmail.com> wrote: > > > > > Can someone please help me? > > > > > > Schema.xml > > > > > > > > stored="true" docValues="true"/> > > > > > > > > multiValued="true"/> > > > > > > > > > > > > > > > > > > > > positionIncrementGap="100"> > > > > > > > > > > > words="stopwords.txt" /> > > > > > ignoreCase="true" expand="true" > > > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > > > > > > > > > > > > > words="stopwords.txt" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > > > > > > > When searching for > > > > > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > > > > > > > > > What am I missing? > > > > > > > > > Thanks, > > > > > > Abhi > > > > > > > > > -- > Abhi Basu >
Re: Synonym not working in 4.10 / CDH 5.14
Yes have tested with PA and NY, nothing works. On Thu, Mar 1, 2018 at 11:38 AM, Alessandro Hosswrote: > Have you tested with another state? > > I'm asking because maybe solr is considering "OR" as a clause separator > instead of a search term, and in this case the problem is not with synonym, > it is with your query. > > On Thu, Mar 1, 2018 at 2:24 PM Abhi Basu <9000r...@gmail.com> wrote: > > > Can someone please help me? > > > > Schema.xml > > > > > stored="true" docValues="true"/> > > > > > multiValued="true"/> > > > > > > > > > > > > > positionIncrementGap="100"> > > > > > > > words="stopwords.txt" /> > > > ignoreCase="true" expand="true" > > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > > > > > > > words="stopwords.txt" /> > > > > > > > > > > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > > > > When searching for > > > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > > > > > What am I missing? > > > > > > Thanks, > > > > Abhi > > > -- Abhi Basu
Re: Synonym not working in 4.10 / CDH 5.14
Have you tested with another state? I'm asking because maybe solr is considering "OR" as a clause separator instead of a search term, and in this case the problem is not with synonym, it is with your query. On Thu, Mar 1, 2018 at 2:24 PM Abhi Basu <9000r...@gmail.com> wrote: > Can someone please help me? > > Schema.xml > > stored="true" docValues="true"/> > > multiValued="true"/> > > > > > > positionIncrementGap="100"> > > > words="stopwords.txt" /> > ignoreCase="true" expand="true" > tokenizerFactory="solr.StandardTokenizerFactory"/> > > > > > words="stopwords.txt" /> > > > > > > > > > Synonyms.txt has been populated with State abbreviations and names. > > > When searching for > > PropertyAddressState:"Oregon", I do not find docs with "OR". > > > > What am I missing? > > > Thanks, > > Abhi >
Synonym not working in 4.10 / CDH 5.14
Can someone please help me? Schema.xml Synonyms.txt has been populated with State abbreviations and names. When searching for PropertyAddressState:"Oregon", I do not find docs with "OR". What am I missing? Thanks, Abhi