Re: need some n00b help: how do I install and set up synonyms file?

2015-01-23 Thread Thami Inaflas
Hello,

i guess you should re-index your data because you have changed the mapping, 
and check if this analysis is run on your query AND on your indexed data.

I hope this helps you out,
TI

Le vendredi 23 janvier 2015 01:50:00 UTC+1, james rubinstein a écrit :

 Thanks Mark, 
 I believe that I have done that (but perhaps not)

 My file is located at

 /Users/jrubinstein/dev/elasticsearch/elasticsearch-1.4.1/config/analysis

 the YML files are in the 'config' directory. 


 On Thursday, January 22, 2015 at 3:37:39 PM UTC-8, Mark Walkom wrote:

 The path needs to be relative to the config home for ES.

 Take a look at 
 http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html#default-paths
  
 for where that would be on your installation.

 On 23 January 2015 at 08:45, james rubinstein rubinste...@gmail.com 
 wrote:

 Also, I tried this:








 curl -XPUT 'localhost:9200/test/_settings' -d '

  {

  index : {

  analysis : {

  analyzer : {

  synonym : {

  tokenizer : whitespace,

  filter : [synonym]

  }

  },

  filter : {

  synonym : {

  type : synonym,

  synonyms_path : analysis/synonym.txt

  }

  }

  }

  }

  }'

 Which gives the response : {acknowledged:true} , but it still didn't 
 change the outcome when querying 


 On Thursday, January 22, 2015 at 12:57:51 PM UTC-8, james rubinstein 
 wrote:

 Hi all,
 I'm new to using ES, but have so far found the process quite intuitive. 
 I've installed ES, set up an index, indexed a bunch of JSON documents, and 
 I can search them. Hooray! 
 However, I want to start using synonyms for a few queries. I'd like to 
 do this at query time using a synonym file. How can I install the synonym 
 file and have ES read it? 
 I'm using elasticsearch-1.4.1 on Mac OSX locally. 

 I've read through the docs  
 http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html
  but 
 I still don't understand what to do because I'm still not seeing queries 
 that use the synonym I've defined. 




 POST /test/_settings
 { 
 index : {
 analysis : {
 analyzer : {
 synonym : {
 tokenizer : whitespace,
 filter : [synonym]
 }
 },
 filter : {
 synonym : {
 type : synonym,
 synonyms_path : analysis/synonym.txt
 }
 }
 }
 }
 }

 My synonym file has one line:

 clementine= clementine,mandarin,orange,citrus

 When I search for Clementine on my index I get 3 results, searching 
 for Orange gets me 66. 

 Thanks,
 JR


  -- 
 You received this message because you are subscribed to the Google 
 Groups elasticsearch group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to elasticsearc...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/elasticsearch/a887f420-b04b-4d5d-80aa-14c120fb9da3%40googlegroups.com
  
 https://groups.google.com/d/msgid/elasticsearch/a887f420-b04b-4d5d-80aa-14c120fb9da3%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/aadf03af-02f1-41f9-b6fc-f8963efb25c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Matchs on whole title

2014-08-13 Thread Thami Inaflas
Hello,

How to only match documents which whole the title is included in the query, 
for example :

If the list of document titles is : Elasticsearch server, Elasticsearch 
experts
If the query is : Configure Elasticsearch Server only the first one 
should match
If the query is : Elasticsearch No documents should match

Thanks for any help.

-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Matchs on whole title

2014-08-13 Thread Thami Inaflas
The problem with phrase-matching is that the request Configure 
Elasticsearch Server won't match the document Elasticsearch Server, 
because it's based on AND operator but the word Configure isn't in the 
title.


Le mercredi 13 août 2014 10:34:53 UTC+2, David Pilato a écrit :

 I think this should help you: 
 http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/phrase-matching.html#phrase-matching

 -- 
 *David Pilato* | *Technical Advocate* | *Elasticsearch.com*
 @dadoonet https://twitter.com/dadoonet | @elasticsearchfr 
 https://twitter.com/elasticsearchfr


 Le 13 août 2014 à 10:24:23, Thami Inaflas (inafla...@gmail.com 
 javascript:) a écrit:

 Hello,

 How to only match documents which whole the title is included in the 
 query, for example :

 If the list of document titles is : Elasticsearch server, Elasticsearch 
 experts
 If the query is : Configure Elasticsearch Server only the first one 
 should match
 If the query is : Elasticsearch No documents should match

 Thanks for any help.
 --
 You received this message because you are subscribed to the Google Groups 
 elasticsearch group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to elasticsearc...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com
  
 https://groups.google.com/d/msgid/elasticsearch/e88fabfe-9ccf-4630-bffb-aee43a86de04%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9a30aae4-c54a-4e3c-84f9-8c735997850d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get term frequencies ?

2014-05-26 Thread Thami Inaflas
Hello everyone,

I'm wondering if there is a way to get the term-frequencies that 
elasticsearch indexed with a request ?

Note : I m using the current version of Elasticsearch (1.1.1)

Thanks in advance for your help.
If my question lacks some details or is unclear please let me know.

-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/b1ad3534-4f1b-420b-8797-026dd7b65972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Elasticsearch Java API - how to _analyze ?

2014-05-19 Thread Thami Inaflas
Hello everyone,

I'm trying to implement this Curl request :

curl -XGET 
http://x:9200/myindex/_analyze?analyzer=my_analyzertext=Un 
logiciel qui n'est pas téléchargé n'importe où

into my Java program using Elasticsearch Java API. I'm not sure how ?
Note : I m using the current version of Elasticsearch (1.1.1), and the 
analyzer my_analyzer has been added to myindex after it has been 
indexed with th standard analyzer.

Thanks in advance for your help.
If my question lacks some details or is unclear please let me know.

-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/40a66b2f-6f2c-4257-bfee-ccb52a36ec6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.