Re: space issue in search results

2014-04-28 Thread Gora Mohanty
On 28 April 2014 12:42, PAVAN  wrote:
>
> I have indexed title in the following way.
>
> honda cars in rajaji nagar
> honda cars in rajajinagar.
>
> suppose if i search for
>
> honda cars in rajainagar (OR)
> honda cars in rajaji nagar
>
> it has to display both the results.

Please do not start multiple threads with the same question.

The straightforward way to do what you want is to use synonyms:
  rajaji nagar, rajajinagar
as presumably you want to collapse spaces only for things like
place names.

Regards,
Gora


space issue in search results

2014-04-28 Thread PAVAN
I have indexed title in the following way.

honda cars in rajaji nagar
honda cars in rajajinagar.

suppose if i search for 

honda cars in rajainagar (OR) 
honda cars in rajaji nagar 

it has to display both the results.

Anybody help me how can we do this.








--
View this message in context: 
http://lucene.472066.n3.nabble.com/space-issue-in-search-results-tp4133421.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Solr Phonetic Search Highlight issue in search results

2013-04-02 Thread Soumyanayan Kar
Thanks a lot Erick for trying this out.

Will wait for a reply from your end.

Thanks & Regards,

Soumya.


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: 01 April 2013 05:46 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr Phonetic Search Highlight issue in search results

Good question, you're causing me to think... about code I know very little
about .

So rather than spouting off, I tried it and.. it works fine for me, either
with or without using fast vector highlighter on, admittedly, a very simple
test.

So I think I'd try peeling off all the extra stuff you've put into your
configs (sorry, I don't have time right now to try to reproduce) and get the
very simple case working, then build the rest back up and see where the
problem begins.

Sorry for the mis-direction!

Erick



On Mon, Apr 1, 2013 at 1:07 AM, Soumyanayan Kar 
wrote:
> Hi Erick,
>
> Thanks for the reply. But help me understand this: If Solr is able to 
> isolate the two documents which contain the term "fact" being the 
> phonetic equivalent of the search term "fakt", then why will it be 
> unable to highlight the terms based on the same logic it uses to search
the documents.
>
> Also, it is correctly highlighting the results in other searches which 
> are also approximate searches and not exact ones for eg. Fuzzy or 
> Synonym search. In these cases also the highlights in the search 
> results are far from the actual search term but still they are getting 
> correctly highlighted.
>
> Maybe I am getting it completely wrong but it looks like there is 
> something wrong with my implementation.
>
> Thanks & Regards,
>
> Soumya.
>
>
> -Original Message-
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: 27 March 2013 06:07 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr Phonetic Search Highlight issue in search results
>
> How would you expect it to highlight successfully? The term is "fakt", 
> there's nothing built in (and, indeed couldn't be) to un-phoneticize 
> it into "fact" and apply that to the Content field. The whole point of 
> phonetic processing is to do a lossy translation from the word into 
> some variant, losing precision all the way.
>
> So this behavior is unsurprising...
>
> Best
> Erick
>
>
>
>
> On Tue, Mar 26, 2013 at 7:28 AM, Soumyanayan Kar 
> > wrote:
>
>> When we are issuing a query with Phonetic Search, it is returning the 
>> correct documents but not returning the highlights. When we use 
>> Stemming or Synonym searches we are getting the proper highlights.
>>
>>
>>
>> For example, when we execute a phonetic query for the term
>> fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it 
>> returns two documents containing the term "fact"(phonetic token 
>> equivalent), but the list of highlights is empty as shown in the 
>> response below.
>>
>>
>>
>> 
>>
>> 
>>
>> 0
>>
>> 16
>>
>> 
>>
>>   ContentSearchPhonetic:fakt
>>
>>   xml
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>>   1
>>
>>   Doc 1
>>
>>   Anyway, this game was excellent and was 
>> well worth the time.  The graphics are truly amazing and the sound 
>> track was pretty pleasant also. The  preacher was in  fact a 
>> thief.
>>
>>   1430480998833848320
>>
>> 
>>
>> 
>>
>>   2
>>
>>   Doc 2
>>
>>   stunning. The  preacher was in  fact an 
>> excellent thief who  had stolen the original manuscript of Hamlet 
>> from an exhibit on the  Riviera, where  he also  acquired his 
>> remarkable and tan.
>>
>>   1430480998841188352
>>
>> 
>>
>>   
>>
>>   
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>>
>>
>> Relevant section of Solr schema:
>>
>>
>>
>> > required="true"/>
>>
>> > required="true"/>
>>
>>  stored="true"
>> required="true"/>
>>
>>
>>
>> > stored="false" multiValued="true"/>
>>
>> > stored="false" multiValued="true"/>
>>
>>  indexed="true"

Re: Solr Phonetic Search Highlight issue in search results

2013-04-02 Thread Jan Høydahl
If you want to highlight, you need to turn on highlighting for the actual field 
you search, and that field needs to be stored, i.e. &hl.fl=ContentSearchPhonetic

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

1. apr. 2013 kl. 14:16 skrev Erick Erickson :

> Good question, you're causing me to think... about code I know very
> little about .
> 
> So rather than spouting off, I tried it and.. it works fine for me, either 
> with
> or without using fast vector highlighter on, admittedly, a very simple test.
> 
> So I think I'd try peeling off all the extra stuff you've put into your 
> configs
> (sorry, I don't have time right now to try to reproduce) and get the very
> simple case working, then build the rest back up and see where the
> problem begins.
> 
> Sorry for the mis-direction!
> 
> Erick
> 
> 
> 
> On Mon, Apr 1, 2013 at 1:07 AM, Soumyanayan Kar
>  wrote:
>> Hi Erick,
>> 
>> Thanks for the reply. But help me understand this: If Solr is able to
>> isolate the two documents which contain the term "fact" being the phonetic
>> equivalent of the search term "fakt", then why will it be unable to
>> highlight the terms based on the same logic it uses to search the documents.
>> 
>> Also, it is correctly highlighting the results in other searches which are
>> also approximate searches and not exact ones for eg. Fuzzy or Synonym
>> search. In these cases also the highlights in the search results are far
>> from the actual search term but still they are getting correctly
>> highlighted.
>> 
>> Maybe I am getting it completely wrong but it looks like there is something
>> wrong with my implementation.
>> 
>> Thanks & Regards,
>> 
>> Soumya.
>> 
>> 
>> -Original Message-
>> From: Erick Erickson [mailto:erickerick...@gmail.com]
>> Sent: 27 March 2013 06:07 AM
>> To: solr-user@lucene.apache.org
>> Subject: Re: Solr Phonetic Search Highlight issue in search results
>> 
>> How would you expect it to highlight successfully? The term is "fakt",
>> there's nothing built in (and, indeed couldn't be) to un-phoneticize it into
>> "fact" and apply that to the Content field. The whole point of phonetic
>> processing is to do a lossy translation from the word into some variant,
>> losing precision all the way.
>> 
>> So this behavior is unsurprising...
>> 
>> Best
>> Erick
>> 
>> 
>> 
>> 
>> On Tue, Mar 26, 2013 at 7:28 AM, Soumyanayan Kar >> wrote:
>> 
>>> When we are issuing a query with Phonetic Search, it is returning the
>>> correct documents but not returning the highlights. When we use
>>> Stemming or Synonym searches we are getting the proper highlights.
>>> 
>>> 
>>> 
>>> For example, when we execute a phonetic query for the term
>>> fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it
>>> returns two documents containing the term "fact"(phonetic token
>>> equivalent), but the list of highlights is empty as shown in the
>>> response below.
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>> 
>>>0
>>> 
>>>16
>>> 
>>>
>>> 
>>>  ContentSearchPhonetic:fakt
>>> 
>>>  xml
>>> 
>>>
>>> 
>>>  
>>> 
>>>
>>> 
>>>
>>> 
>>>  1
>>> 
>>>  Doc 1
>>> 
>>>  Anyway, this game was excellent and was
>>> well worth the time.  The graphics are truly amazing and the sound
>>> track was pretty pleasant also. The  preacher was in  fact a
>>> thief.
>>> 
>>>  1430480998833848320
>>> 
>>>
>>> 
>>>
>>> 
>>>  2
>>> 
>>>  Doc 2
>>> 
>>>  stunning. The  preacher was in  fact an
>>> excellent thief who  had stolen the original manuscript of Hamlet
>>> from an exhibit on the  Riviera, where  he also  acquired his
>>> remarkable and tan.
>>> 
>>>  1430480998841188352
>>> 
>>>
>>> 
>>>  
>>> 
>>>  
>>> 
>>>
>>> 
>>>
>>> 
>>>  
>>> 
>>>
>

Re: Solr Phonetic Search Highlight issue in search results

2013-04-01 Thread Erick Erickson
Good question, you're causing me to think... about code I know very
little about .

So rather than spouting off, I tried it and.. it works fine for me, either with
or without using fast vector highlighter on, admittedly, a very simple test.

So I think I'd try peeling off all the extra stuff you've put into your configs
(sorry, I don't have time right now to try to reproduce) and get the very
simple case working, then build the rest back up and see where the
problem begins.

Sorry for the mis-direction!

Erick



On Mon, Apr 1, 2013 at 1:07 AM, Soumyanayan Kar
 wrote:
> Hi Erick,
>
> Thanks for the reply. But help me understand this: If Solr is able to
> isolate the two documents which contain the term "fact" being the phonetic
> equivalent of the search term "fakt", then why will it be unable to
> highlight the terms based on the same logic it uses to search the documents.
>
> Also, it is correctly highlighting the results in other searches which are
> also approximate searches and not exact ones for eg. Fuzzy or Synonym
> search. In these cases also the highlights in the search results are far
> from the actual search term but still they are getting correctly
> highlighted.
>
> Maybe I am getting it completely wrong but it looks like there is something
> wrong with my implementation.
>
> Thanks & Regards,
>
> Soumya.
>
>
> -Original Message-
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: 27 March 2013 06:07 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr Phonetic Search Highlight issue in search results
>
> How would you expect it to highlight successfully? The term is "fakt",
> there's nothing built in (and, indeed couldn't be) to un-phoneticize it into
> "fact" and apply that to the Content field. The whole point of phonetic
> processing is to do a lossy translation from the word into some variant,
> losing precision all the way.
>
> So this behavior is unsurprising...
>
> Best
> Erick
>
>
>
>
> On Tue, Mar 26, 2013 at 7:28 AM, Soumyanayan Kar > wrote:
>
>> When we are issuing a query with Phonetic Search, it is returning the
>> correct documents but not returning the highlights. When we use
>> Stemming or Synonym searches we are getting the proper highlights.
>>
>>
>>
>> For example, when we execute a phonetic query for the term
>> fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it
>> returns two documents containing the term "fact"(phonetic token
>> equivalent), but the list of highlights is empty as shown in the
>> response below.
>>
>>
>>
>> 
>>
>> 
>>
>> 0
>>
>> 16
>>
>> 
>>
>>   ContentSearchPhonetic:fakt
>>
>>   xml
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>>   1
>>
>>   Doc 1
>>
>>   Anyway, this game was excellent and was
>> well worth the time.  The graphics are truly amazing and the sound
>> track was pretty pleasant also. The  preacher was in  fact a
>> thief.
>>
>>   1430480998833848320
>>
>> 
>>
>> 
>>
>>   2
>>
>>   Doc 2
>>
>>   stunning. The  preacher was in  fact an
>> excellent thief who  had stolen the original manuscript of Hamlet
>> from an exhibit on the  Riviera, where  he also  acquired his
>> remarkable and tan.
>>
>>   1430480998841188352
>>
>> 
>>
>>   
>>
>>   
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>>
>>
>> Relevant section of Solr schema:
>>
>>
>>
>> > required="true"/>
>>
>> > required="true"/>
>>
>>  stored="true"
>> required="true"/>
>>
>>
>>
>> > stored="false" multiValued="true"/>
>>
>> > stored="false" multiValued="true"/>
>>
>>  indexed="true"
>> stored="false" multiValued="true"/>
>>
>> > stored="false" multiValued="true"/>
>>
>>
>>
>> DocId
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>> 
>>
>>   
>>
>>  
>>
>> 

RE: Solr Phonetic Search Highlight issue in search results

2013-03-31 Thread Soumyanayan Kar
Hi Erick,

Thanks for the reply. But help me understand this: If Solr is able to
isolate the two documents which contain the term "fact" being the phonetic
equivalent of the search term "fakt", then why will it be unable to
highlight the terms based on the same logic it uses to search the documents.

Also, it is correctly highlighting the results in other searches which are
also approximate searches and not exact ones for eg. Fuzzy or Synonym
search. In these cases also the highlights in the search results are far
from the actual search term but still they are getting correctly
highlighted.

Maybe I am getting it completely wrong but it looks like there is something
wrong with my implementation.

Thanks & Regards,

Soumya.


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: 27 March 2013 06:07 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr Phonetic Search Highlight issue in search results

How would you expect it to highlight successfully? The term is "fakt",
there's nothing built in (and, indeed couldn't be) to un-phoneticize it into
"fact" and apply that to the Content field. The whole point of phonetic
processing is to do a lossy translation from the word into some variant,
losing precision all the way.

So this behavior is unsurprising...

Best
Erick




On Tue, Mar 26, 2013 at 7:28 AM, Soumyanayan Kar  wrote:

> When we are issuing a query with Phonetic Search, it is returning the 
> correct documents but not returning the highlights. When we use 
> Stemming or Synonym searches we are getting the proper highlights.
>
>
>
> For example, when we execute a phonetic query for the term
> fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it 
> returns two documents containing the term "fact"(phonetic token 
> equivalent), but the list of highlights is empty as shown in the 
> response below.
>
>
>
> 
>
> 
>
> 0
>
> 16
>
> 
>
>   ContentSearchPhonetic:fakt
>
>   xml
>
> 
>
>   
>
> 
>
> 
>
>   1
>
>   Doc 1
>
>   Anyway, this game was excellent and was 
> well worth the time.  The graphics are truly amazing and the sound 
> track was pretty pleasant also. The  preacher was in  fact a 
> thief.
>
>   1430480998833848320
>
> 
>
> 
>
>   2
>
>   Doc 2
>
>   stunning. The  preacher was in  fact an 
> excellent thief who  had stolen the original manuscript of Hamlet  
> from an exhibit on the  Riviera, where  he also  acquired his 
> remarkable and tan.
>
>   1430480998841188352
>
> 
>
>   
>
>   
>
> 
>
> 
>
>   
>
> 
>
>
>
> Relevant section of Solr schema:
>
>
>
>  required="true"/>
>
>  required="true"/>
>
>  required="true"/>
>
>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>
>
> DocId
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
>   
>
>  
>
>  
>
>   
>
> 
>
>
>
> 
>
>   
>
>  
>
>   encoder="DoubleMetaphone" inject="false"/>
>
>   
>
> 
>
>
>
> 
>
> 
>
>   
>
>ignoreCase="true" expand="true"/>
>
> 
>
> 
>
>
>
> Relevant section of Solr config:
>
>
>
> 
>
> 
>
>  
>
>explicit
>
>100
>
>ContentSearch
>
>  true
>
> Content
>
> 150
>
>   40
>
>  
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
> default="true"
>
> class="solr.highlight.GapFragmenter">
>
>   
>
> 100
>
>   
>
> 
>
>
>
> 
>
> 
> class="solr.highlight.RegexFragmenter">
>
>   
>
> 
>
> 70
>
> 
>
> 0.5
>
> 
>
> [-\w 
> ,/\n\"']{20,200}
>
>   
>
> 
>
>
>
> Has anyone experienced this kind of behaviour before? Need some 
> direction for troubleshooting.
>
>
>
> Soumya.
>
>
>
>
>
>
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

Re: Solr Phonetic Search Highlight issue in search results

2013-03-26 Thread Erick Erickson
How would you expect it to highlight successfully? The term is "fakt",
there's nothing built in (and, indeed couldn't be) to un-phoneticize it
into "fact" and apply that to the Content field. The whole point of
phonetic processing is to do a lossy translation from the word into some
variant, losing precision all the way.

So this behavior is unsurprising...

Best
Erick




On Tue, Mar 26, 2013 at 7:28 AM, Soumyanayan Kar  wrote:

> When we are issuing a query with Phonetic Search, it is returning the
> correct documents but not returning the highlights. When we use Stemming or
> Synonym searches we are getting the proper highlights.
>
>
>
> For example, when we execute a phonetic query for the term
> fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it returns
> two
> documents containing the term "fact"(phonetic token equivalent), but the
> list of highlights is empty as shown in the response below.
>
>
>
> 
>
> 
>
> 0
>
> 16
>
> 
>
>   ContentSearchPhonetic:fakt
>
>   xml
>
> 
>
>   
>
> 
>
> 
>
>   1
>
>   Doc 1
>
>   Anyway, this game was excellent and was well
> worth the time.  The graphics are truly amazing and the sound track was
> pretty pleasant also. The  preacher was in  fact a thief.
>
>   1430480998833848320
>
> 
>
> 
>
>   2
>
>   Doc 2
>
>   stunning. The  preacher was in  fact an
> excellent thief who  had stolen the original manuscript of Hamlet  from an
> exhibit on the  Riviera, where  he also  acquired his remarkable and
> tan.
>
>   1430480998841188352
>
> 
>
>   
>
>   
>
> 
>
> 
>
>   
>
> 
>
>
>
> Relevant section of Solr schema:
>
>
>
>  required="true"/>
>
>  required="true"/>
>
>  required="true"/>
>
>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>  stored="false" multiValued="true"/>
>
>
>
> DocId
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
>   
>
>  
>
>  
>
>   
>
> 
>
>
>
> 
>
>   
>
>  
>
>   encoder="DoubleMetaphone" inject="false"/>
>
>   
>
> 
>
>
>
> 
>
> 
>
>   
>
>ignoreCase="true" expand="true"/>
>
> 
>
> 
>
>
>
> Relevant section of Solr config:
>
>
>
> 
>
> 
>
>  
>
>explicit
>
>100
>
>ContentSearch
>
>  true
>
> Content
>
> 150
>
>   40
>
>  
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
> default="true"
>
> class="solr.highlight.GapFragmenter">
>
>   
>
> 100
>
>   
>
> 
>
>
>
> 
>
> 
> class="solr.highlight.RegexFragmenter">
>
>   
>
> 
>
> 70
>
> 
>
> 0.5
>
> 
>
> [-\w ,/\n\"']{20,200}
>
>   
>
> 
>
>
>
> Has anyone experienced this kind of behaviour before? Need some direction
> for troubleshooting.
>
>
>
> Soumya.
>
>
>
>
>
>


Solr Phonetic Search Highlight issue in search results

2013-03-26 Thread Soumyanayan Kar
When we are issuing a query with Phonetic Search, it is returning the
correct documents but not returning the highlights. When we use Stemming or
Synonym searches we are getting the proper highlights.

 

For example, when we execute a phonetic query for the term
fakt(ContentSearchPhonetic:fakt) in the Solr Admin interface, it returns two
documents containing the term "fact"(phonetic token equivalent), but the
list of highlights is empty as shown in the response below.

 





0

16



  ContentSearchPhonetic:fakt

  xml



  





  1

  Doc 1

  Anyway, this game was excellent and was well
worth the time.  The graphics are truly amazing and the sound track was
pretty pleasant also. The  preacher was in  fact a thief.

  1430480998833848320





  2

  Doc 2

  stunning. The  preacher was in  fact an
excellent thief who  had stolen the original manuscript of Hamlet  from an
exhibit on the  Riviera, where  he also  acquired his remarkable and
tan.

  1430480998841188352



  

  





  



 

Relevant section of Solr schema:

 



















DocId













  

 

 









  

 

 











  

  

 



 

Relevant section of Solr config:

 





 

   explicit

   100

   ContentSearch

 true

Content

150

  40

 













  

100

  









  



70



0.5



[-\w ,/\n\"']{20,200}

  



 

Has anyone experienced this kind of behaviour before? Need some direction
for troubleshooting.

 

Soumya.

 

 



RE: Issue in search

2010-03-16 Thread Nair, Manas
You could write yourr query like
q=filedname1:searchValue AND fieldName2:value OR fieldName3: Value
 
Regards,
Manas



From: Suram [mailto:reactive...@yahoo.com]
Sent: Wed 3/17/2010 12:44 AM
To: solr-user@lucene.apache.org
Subject: Issue in search




In solr how can perform AND, OR, NOT search while querying the data
--
View this message in context: 
http://old.nabble.com/Issue-in-search-tp27927828p27927828.html
Sent from the Solr - User mailing list archive at Nabble.com.





Issue in search

2010-03-16 Thread Suram

In solr how can perform AND, OR, NOT search while querying the data
-- 
View this message in context: 
http://old.nabble.com/Issue-in-search-tp27927828p27927828.html
Sent from the Solr - User mailing list archive at Nabble.com.