Jump to content

Chris027

Clients
  • Posts

    705
  • Joined

  • Last visited

  • Days Won

    2

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Chris027

  1. I guess I'm trying to figure out if this is my own issue I created, or if IPS is somehow deleting the index. Here is what I'm doing. 

    curl -XPUT 'localhost:9200/myindex?pretty'
    {
      "acknowledged" : true,
      "shards_acknowledged" : true,
      "index" : "myindex"
    }
    
    
    curl -XGET 'http://localhost:9200/myindex?pretty'
    {
      "myindex" : {
        "aliases" : { },
        "mappings" : { },
        "settings" : {
          "index" : {
            "creation_date" : "1665603517192",
            "number_of_shards" : "1",
            "number_of_replicas" : "1",
            "uuid" : "0FSaTywWTgSrGxOivBNWKw",
            "version" : {
              "created" : "136227827"
            },
            "provided_name" : "myindex"
          }
        }
      }
    }
    
    
    curl -XGET 'localhost:9200/_cat/indices?v'
    health status index   uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    yellow open   myindex 0FSaTywWTgSrGxOivBNWKw   1   1          0            0       208b           208b
    green  open   .tasks  6yEl4oDsRO-NnR7iQnA8Jw   1   0          6            0     40.5kb         40.5kb

     

    In the above I creates the index, checked its status and the status of all indices. The newly created index shows health as yellow because it's new (I'm guessing). 

    Then I switched from MySQL to Elastic / OpenSearch.

     

    Could contain: Text

     

    Could contain: File, Text, Page, Document, Webpage

     

     

    Then I checked on the status of all indices, and "myindex" is gone.

     

    curl -XGET 'localhost:9200/_cat/indices?v'
    health status index  uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    green  open   .tasks 6yEl4oDsRO-NnR7iQnA8Jw   1   0          6            0     40.5kb         40.5kb

     

     

     

     

     

     

     

     

  2. 3 minutes ago, Daniel F said:

    That's correct. Reindexing the search index will truncate the old one, before the process starts to create the new records.

    You should see the progress on the ACP Dashboard page. Is it progressing? Are you able to run it manually? If yes, do you see any errors there? If no, could you check if you're see now anything in the index via CLI?

    Before I reindex via AdminCP it looks like this

     curl -XGET 'localhost:9200/_cat/indices?v'
    health status index    uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    green  open   .tasks   6yEl4oDsRO-NnR7iQnA8Jw   1   0          4            0     24.9kb         24.9kb
    yellow open   myindex  0i_d_zNrT2GFuUvp_m2fYQ   1   1          1            0       208b           208b

     

    After I reindex in the AdminCP it looks like this

    curl -XGET 'localhost:9200/_cat/indices?v'
    health status index  uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    green  open   .tasks 6yEl4oDsRO-NnR7iQnA8Jw   1   0          4            0     24.9kb         24.9kb


     

    The index named myindex is totally gone. It only had one article in it, and the reindex took about 10 seconds in the AdminCP. It finished quickly. I also did this and clicked "run manually" with the same result. 

  3. I just installed OpenSearch and stock 4.7.3 on my beta server. I created an index via command line on the server, then create a document in IPS. I see the index shows 1 document after this. My search turns up nothing. So I reindex via AdminCP. Then the index disappears. When I query for indices via command line, it isn't listed anymore. 

    Anyone else see this?

  4. 1 minute ago, kenneth andrew said:

    same here, my entire forum has gone replaced with this message. It happened when I did a forum software update today. I'm pretty sure this happened before and I was able to get rid of it by disabling classifieds, but now the forum has gone I can't get into the admin control to disable it again. Anyone know how I can access my admin panel with the forum gone to switch classified off?       

    Fatal error: Declaration of IPS\classifieds\_Advert::getItemsWithPermission($where = [], $order = null, $limit = 10, $permissionKey = 'read', $includeHiddenItems = IPS\Content\Hideable::FILTER_AUTOMATIC, $queryFlags = 0, ?IPS\Member $member = null, $joinContainer = false, $joinComments = false, $joinReviews = false, $countOnly = false, $joins = null, $skipPermission = false, $joinTags = true, $joinAuthor = true, $joinLastCommenter = true, $showMovedLinks = false) must be compatible with IPS\Content\_Item::getItemsWithPermission($where = [], $order = null, $limit = 10, $permissionKey = 'read', $includeHiddenItems = IPS\Content\Hideable::FILTER_AUTOMATIC, $queryFlags = 0, ?IPS\Member $member = null, $joinContainer = false, $joinComments = false, $joinReviews = false, $countOnly = false, $joins = null, $skipPermission = false, $joinTags = true, $joinAuthor = true, $joinLastCommenter = true, $showMovedLinks = false, $location = null) in /home/treasure/public_html/forums/applications/classifieds/sources/Advert/Advert.php on line 605

    Could try removing the classifieds directory on the server. 

  5. 4 minutes ago, Randy Calvert said:

    You CAN'T calculate the true cost as it depends on a bunch of factors that you won't know until after the fact.  However a BALLPARK ESTIMATE...

    If you take the smallest instance (t3.small.search), and have it running all month...  the base cost is going to be roughly $52 per month.  (That includes two instances... a data instance and a master instance.)  The minimum disk size is 10GB, so that's another $1.22 a month.  

    The above does not take into account bandwidth between your server and AWS which would all be billable traffic.  That would be roughly $0.09 per GB.  It's not possible to estimate how much you would use as it depends on if you use it to show data on every page or just search results...  how many users you have per day/month....  etc.  

    You could also just install it on an EC2 instance yourself and manage it.  Then it's the cost of the instance and bandwidth which is obviously going to be lower.

    Thanks Randy. 

  6. I'm considering moving to IPS cloud hosting, but find it hard to justify the cost of ElasticSearch. It starts at $95 per month from Elastic. This is something I have installed on my server for free. 

    I believe it's possible to use OpenSearch from AWS as a service, but it's really hard to figure out how much the price would be for using the service. Looking at this page, I can't tell if I need to spend $0.036 per hour or $7.00 per hour or something in between. 

    https://aws.amazon.com/opensearch-service/pricing/

    Does anyone have any idea how to calculate the true cost?

  7. One additional follow up comment on this after using it for a couple weeks. 

    I hate it and it makes no sense to me. When people in my community search for something, they couldn't care less which part of the site it comes from. they want information about the topic of the search. Plus, they have no clue that my platform, IPS, has different sections titled Pages, Topics, etc...

    We need the ability to tailor this search bar to our own needs. 

×
×
  • Create New...